aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/html_diagnostics/relevant_lines/multifile.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/html_diagnostics/relevant_lines/multifile.c')
-rw-r--r--test/Analysis/html_diagnostics/relevant_lines/multifile.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Analysis/html_diagnostics/relevant_lines/multifile.c b/test/Analysis/html_diagnostics/relevant_lines/multifile.c
new file mode 100644
index 000000000000..3abffd609b5b
--- /dev/null
+++ b/test/Analysis/html_diagnostics/relevant_lines/multifile.c
@@ -0,0 +1,14 @@
+#include "header.h"
+
+int f(int coin) {
+ char *p = 0;
+ if (coin) {
+ return helper(p, coin);
+ }
+ return 0;
+}
+
+// RUN: rm -rf %t.output
+// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
+// RUN: cat %t.output/* | FileCheck %s --match-full-lines
+// CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}, "3": {"3": 1, "4": 1, "5": 1, "6": 1, "7": 1}};