[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-17.c
blob8a95f15c5ae6c19421abb9a5301061b1d46e4374
1 /* { dg-do compile } */
2 /* { dg-options "-O -Wuninitialized" } */
4 typedef _Complex float C;
5 C foo(int cond)
7 C f;
8 __imag__ f = 0;
9 if (cond)
11 __real__ f = 1;
12 return f;
14 return f; /* { dg-warning "may be used" "unconditional" } */