summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/uninit-12.c
blob: 7889e5370e5d5dbaf1026ea6d026d91d6207b0a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}