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

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