PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / 20000623-1.c
blobbbc8c10ee0c9fe0a75a912e7d8a73ed4bc13594a
1 /* { dg-do run } */
2 /* { dg-options "-O3 -fno-strict-aliasing" } */
4 extern void exit (int);
5 extern void abort (void);
7 struct foos { int l; };
8 int foo;
9 static struct foos *getfoo(void);
10 int main (void)
12 struct foos *f = getfoo();
13 f->l = 1;
14 foo = 2;
15 if (f->l == 1)
16 abort();
17 exit(0);
19 static struct foos *getfoo(void)
20 { return (struct foos *)&foo; }