xref: /aosp_15_r20/external/clang/test/PCH/stmts.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // Test this without pch.
2*67e74705SXin Li // RUN: %clang_cc1 -include %S/stmts.h -fsyntax-only -emit-llvm -o - %s
3*67e74705SXin Li 
4*67e74705SXin Li // Test with pch.
5*67e74705SXin Li // RUN: %clang_cc1 -emit-pch -o %t %S/stmts.h
6*67e74705SXin Li // RUN: %clang_cc1 -include-pch %t -fsyntax-only -emit-llvm -o - %s
7*67e74705SXin Li 
g0(void)8*67e74705SXin Li void g0(void) { f0(5); }
g1(int x)9*67e74705SXin Li int g1(int x) { return f1(x); }
query_name(void)10*67e74705SXin Li const char* query_name(void) { return what_is_my_name(); }
11*67e74705SXin Li 
use_computed_goto(int x)12*67e74705SXin Li int use_computed_goto(int x) { return computed_goto(x); }
13*67e74705SXin Li 
get_weird_max(int x,int y)14*67e74705SXin Li int get_weird_max(int x, int y) { return weird_max(x, y); }
15