summaryrefslogtreecommitdiffstats
path: root/test/Analysis/yaccignore.c
blob: c9edfadaf2f8c357ea0e22613c43b9c64e0b5720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* A Bison parser, made by GNU Bison 1.875.  */

// RUN: rm -rf %t.plist
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output=plist -o %t.plist -verify %s
// RUN: FileCheck --input-file=%t.plist %s

// expected-no-diagnostics
int foo() {
  int *x = 0;
  return *x; // no-warning
}

// CHECK:   <key>diagnostics</key>