[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49120.c
blob50993e69dfd2b1ca428f0db93d365a4cd56f4d85
1 /* PR c/49120 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall" } */
4 /* { dg-require-effective-target alloca } */
6 int
7 main ()
9 int a = 1;
10 int c = ({ char b[a + 1]; b[0] = 0; b[0]; });
11 return c;