OSDN Git Service

* c-decl.c (grokfield): Allow typedefs for anonymous structs and
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / uninit-12.c
1 /* PR 23497 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -Wuninitialized" } */
4
5 typedef _Complex float C;
6 C foo()
7 {
8   C f;
9   __real__ f = 0;
10   __imag__ f = 0;
11   return f;
12 }