aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr71581.c
blob: dd71dde9eac7318887ea0eb16991cc607f1feb46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* PR middle-end/71581 */
/* { dg-do compile } */
/* { dg-options "-Wuninitialized" } */

_Complex float
f1 (void)
{
  float x;
  return x;	/* { dg-warning "is used uninitialized" } */
}

_Complex double
f2 (void)
{
  double x;
  return x;	/* { dg-warning "is used uninitialized" } */
}

_Complex int
f3 (void)
{
  int x;
  return x;	/* { dg-warning "is used uninitialized" } */
}