libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr89045.c
blob2b5730d4888b64515a16cb718d37b6db2a878c2c
1 /* PR c/89045 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target alloca } */
4 /* { dg-options "" } */
6 int
7 foo (int x)
9 int v[(int){ x }];
10 v[0] = 0;
11 int bar (int p[(int){ x }])
13 return p[0];
15 return bar (v);