libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / forwprop-1.c
blobc105635a0c3f4b8090d0a0f462096faa187f7487
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-forwprop1" } */
4 /* We may not optimize this to b->t[i] = 1. */
6 struct a
8 int t[10];
9 };
11 void f(struct a * b, __SIZE_TYPE__ i)
13 int *c = b->t;
14 c[i] = 1;
17 /* { dg-final { scan-tree-dump-times "\\\[\[^\n\r\]*\\\] = 1;" 0 "forwprop1" } } */