OSDN Git Service

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