gcc/gcc/testsuite/gcc.dg/uninit-17-O0.c

16 lines
209 B
C

/* { dg-do compile } */
/* { dg-options "-Wuninitialized" } */
typedef _Complex float C;
C foo(int cond)
{
C f;
__imag__ f = 0;
if (cond)
{
__real__ f = 1;
return f;
}
return f;
}