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