PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / assign-3.c
blobf86f2b15d62f0c36edebb820f88b3182c0708f8c
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" } } */