Skip to content
Snippets Groups Projects
Commit 413c572d authored by Jordan Rose's avatar Jordan Rose
Browse files

[analyzer] Add test for crash tracing (r186639)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186926 91177308-0d34-0410-b5e6-96231b3b80d8
parent 9815ec0a
No related branches found
No related tags found
No related merge requests found
// RUN: not --crash %clang --analyze -Xanalyzer -analyzer-checker=debug.ExprInspection %s 2>&1 | FileCheck %s
void clang_analyzer_crash(void);
void inlined() {
clang_analyzer_crash();
}
void test() {
inlined();
}
// CHECK: 0. Program arguments: {{.*}}clang
// CHECK-NEXT: 1. <eof> parser at end of file
// CHECK-NEXT: 2. While analyzing stack:
// CHECK-NEXT: #0 void inlined()
// CHECK-NEXT: #1 void test()
// CHECK-NEXT: 3. {{.*}}crash-trace.c:6:3: Error evaluating statement
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment