mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

When viewing the report in the collapsed mode the label signifying where did the execution go is often necessary for properly understanding the context. Differential Revision: https://reviews.llvm.org/D43145 llvm-svn: 325975
14 lines
378 B
C
14 lines
378 B
C
int goto_test(int input) {
|
|
int *p = 0;
|
|
if (input)
|
|
goto mylabel;
|
|
return 0;
|
|
mylabel:
|
|
return *p;
|
|
}
|
|
|
|
// 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": {"1": 1, "2": 1, "3": 1, "4": 1, "6": 1, "7": 1}};
|