diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/uninit-12.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/uninit-12.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/uninit-12.c b/gcc/testsuite/gcc.dg/uninit-12.c new file mode 100644 index 00000000000..7889e5370e5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/uninit-12.c @@ -0,0 +1,12 @@ +/* PR 23497 */ +/* { dg-do compile } */ +/* { dg-options "-O -Wuninitialized" } */ + +typedef _Complex float C; +C foo() +{ + C f; + __real__ f = 0; + __imag__ f = 0; + return f; +} |