1 // RUN: not --crash %clang_analyze_cc1 -analyzer-checker=debug.ExprInspection %s 2>&1 | FileCheck %s
2 // REQUIRES: crash-recovery
3 
4 // Stack traces require back traces.
5 // REQUIRES: backtrace
6 
7 void clang_analyzer_crash(void);
8 
inlined()9 void inlined() {
10   clang_analyzer_crash();
11 }
12 
test()13 void test() {
14   inlined();
15 }
16 
17 // CHECK: 0.	Program arguments: {{.*}}clang
18 // CHECK-NEXT: 1.	<eof> parser at end of file
19 // CHECK-NEXT: 2. While analyzing stack:
20 // CHECK-NEXT:  #0 Calling inlined at line 14
21 // CHECK-NEXT:  #1 Calling test
22 // CHECK-NEXT: 3.	{{.*}}crash-trace.c:{{[0-9]+}}:3: Error evaluating statement
23