aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/uninit-pr94714.c
blob: df07f986a5e57ac3f78350d883dea66335cdef4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int main (void)
{
  int *p;
  int i;

  p = &i; /* { dg-bogus "uninitialized" } */
  printf ("%d\n", p[0]);  /* { dg-warning "use of uninitialized value '\\*p'" } */

  return 0;
}