summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/uninit-pr40943.c
blob: 2b6e9131cb100021ab28d417068120de02db9aab (plain)
1
2
3
4
5
6
7
8
9
10
/* PR middle-end/40943 */
/* { dg-do compile } */
/* { dg-options "-O2 -Wuninitialized" } */

void
foo (void)
{
  int *p;
  *p = 3;	/* { dg-warning "is used uninitialized" } */
}