summaryrefslogtreecommitdiff
path: root/test/Analysis/yaccignore.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/yaccignore.c')
-rw-r--r--test/Analysis/yaccignore.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Analysis/yaccignore.c b/test/Analysis/yaccignore.c
new file mode 100644
index 0000000000000..c9edfadaf2f8c
--- /dev/null
+++ b/test/Analysis/yaccignore.c
@@ -0,0 +1,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>