summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/uninit-17-O0.c
blob: 0eaef0533676cdd26e05696edb5921850b630222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { 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;
}