view gcc/testsuite/gcc.dg/pr71581.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* PR middle-end/71581 */
/* { dg-do compile } */
/* { dg-options "-Wuninitialized" } */

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

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

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