summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/uninit-13.c
blob: 631e8de3ada6d6f49db5df96e3bfe976c3bcdc96 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O -Wuninitialized" } */

typedef _Complex float C;
C foo()
{
  C f;
  __imag__ f = 0;	/* { dg-warning "is used" "unconditional" } */
  return f;
}