c++: Implement for namespace statics CWG 2867 - Order of initialization for structure...
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pr111397.c
blobec12f9d642a6e2e4500934ecfe384540334e3185
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wuninitialized" } */
4 int globalVar = 1;
5 int __attribute__ ((__returns_twice__)) test_setjmpex(void *context);
7 void testfn()
9 int localVar = globalVar;
10 while (!localVar) {
11 test_setjmpex(__builtin_frame_address (0)); // { dg-bogus "uninitialized" }
12 if (globalVar)
13 break;