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

int main (void)
{
  int *p;
  int i; /* { dg-message "region created on stack here" } */

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

  return 0;
}