2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr50472.c
blob519408038d17acfd9860bc70b02d3a437f3489ba
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-optimized" } */
3 /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
5 static const unsigned int foo = 1;
6 unsigned int test( void )
8 const volatile unsigned int *bar = &foo;
9 return ( *bar );
12 /* { dg-final { scan-tree-dump-not "return 1" "optimized" } } */