diff options
Diffstat (limited to 'test/Analysis/html_diagnostics/relevant_lines/notexecutedlines.c')
-rw-r--r-- | test/Analysis/html_diagnostics/relevant_lines/notexecutedlines.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Analysis/html_diagnostics/relevant_lines/notexecutedlines.c b/test/Analysis/html_diagnostics/relevant_lines/notexecutedlines.c new file mode 100644 index 000000000000..3c723aa93349 --- /dev/null +++ b/test/Analysis/html_diagnostics/relevant_lines/notexecutedlines.c @@ -0,0 +1,12 @@ +int f() { + int zzz = 200; + zzz += 100; + return 0; +} + +// Show line with the warning even if it wasn't executed (e.g. warning given +// by path-insensitive analysis). +// RUN: rm -rf %t.output +// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core,deadcode -analyzer-output html -o %t.output %s +// RUN: cat %t.output/* | FileCheck %s --match-full-lines +// CHECK: var relevant_lines = {"1": {"3": 1}}; |