summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/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;
}