xref: /llvm-project/clang/test/Analysis/inlining/analysis-order.c (revision 1ea584377e7897f7df5302ed9cd378d17be14fbf)
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core.builtin.NoReturnFunctions -analyzer-display-progress %s 2>&1 | FileCheck %s
2 
3 // Do not analyze test1() again because it was inlined
4 void test1(void);
5 
test2(void)6 void test2(void) {
7   test1();
8 }
9 
test1(void)10 void test1(void) {
11 }
12 
13 // CHECK: analysis-order.c test2
14 // CHECK-NEXT: analysis-order.c test1
15 // CHECK-NEXT: analysis-order.c test2
16