aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/uninit-G-O0.c
blob: d6edffede66d020146ea36f36186bb640a2e4386 (plain)
1
2
3
4
5
6
7
8
9
/* Test we do not warn about initializing variable with address of self in the initialization. */
/* { dg-do compile } */
/* { dg-options "-Wuninitialized" } */

void *f()
{
  void *i = &i;
  return i;
}