c++: Fix crash during NRV optimization with invalid input [PR117099, PR117129]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr93122.c
blob42d1d94ba15fec8d443df07ea7b570abfff2784c
1 /* PR target/93122 */
2 /* { dg-do compile { target lp64 } } */
3 /* { dg-require-effective-target power10_ok } */
4 /* { dg-options "-fstack-clash-protection -mprefixed -mdejagnu-cpu=power10" } */
6 void bar (char *);
8 void
9 foo (void)
11 char s[4294967296];
12 bar (s);