summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/uninit-12-O0.c
blob: 7c0664e4dfc4f7ffaa47e17c3d773d52f0276f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR 23497 */
/* { dg-do compile } */
/* { dg-options "-Wuninitialized" } */

typedef _Complex float C;
C foo()
{
  C f;
  __real__ f = 0;
  __imag__ f = 0;
  return f;
}