new tests
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / integer-addr.c
blobb102a7a52e728ac7baa4d758528cdb2e25ae2596
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized -fno-strict-aliasing" } */
3 /* Test with fixed address */
4 static int *foo = (int *) (unsigned long) 0x7800000;
6 int func(void) __attribute__ ((noinline));
8 extern int bar(void);
10 int func(void)
12 if (*foo) {
13 return 1;
15 return 0;
19 int foobar(void)
22 if (func()) {
23 *foo = 1;
25 return func();
28 /* { dg-final { scan-tree-dump-times "= func" 2 "optimized" } } */
29 /* { dg-final { cleanup-tree-dump "optimized" } } */