PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / assign-3.c
blobe5426d781e593f31e98b9b14741b66566bad7a60
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fdump-tree-gimple" } */
4 extern void abort (void);
5 struct S { int i; };
6 struct S arr[32];
7 volatile int count = 0;
9 struct S __attribute__((noinline))
10 incr ()
12 ++count;
15 int main()
17 arr[count++] = incr ();
18 if (count != 2)
19 abort ();
20 return 0;
23 /* { dg-final { scan-tree-dump-times " = count;" 3 "gimple" } } */
24 /* { dg-final { cleanup-tree-dump "gimple" } } */