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