1 /* PR tree-optimization/33645 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -funit-at-a-time" } */ 4 5 __attribute__((noinline)) int bar(int * x)6bar (int *x) 7 { 8 return *x++; 9 } 10 11 int main()12main () 13 { 14 static int var1_s; 15 static int *var1_t = &var1_s; 16 17 return bar (var1_t) != 0; 18 } 19 20 /* { dg-final { scan-assembler-not "var1_t" } } */ 21