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