summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/uninit-G.c
blob: 08f5f532116097e214f331102be6cc680d31824a (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 "-O -Wuninitialized" } */

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