2013-09-12 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / uninit-pred-4.C
blob94ab13c50d6f147d7c30c516b05da208ff0e48a4
1 /* { dg-do compile } */
2 /* { dg-options "-Wuninitialized -Og" } */
4 int pop ();
5 int pop_first_bucket;
7 int my_pop ()
9   int out;  // { dg-bogus "uninitialized" "uninitialized variable warning" }
11   while (pop_first_bucket)
12     if (pop_first_bucket && (out = pop()))
13       return out;
15   return 0;