Reverting merge from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / pr47391.c
blob5ec98f10850ced28aa13d2642c11e0ea45986a78
1 /* PR tree-optimization/47391 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 const volatile int v = 1;
6 int i = 0;
8 void
9 foo (void)
11 i = v;
14 int
15 main (void)
17 foo ();
18 return 0;
21 /* { dg-final { scan-tree-dump-not "i = 1;" "optimized" } } */
22 /* { dg-final { cleanup-tree-dump "optimized" } } */