blob: 69c7ec7dbf49e9ef60c1658d928fa4f29aa36e81 [file] [log] [blame]
Douglas Gregor025452f2009-04-17 00:04:06 +00001// Test this without pch.
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: clang-cc -include %S/stmts.h -fsyntax-only -emit-llvm -o - %s
Douglas Gregor025452f2009-04-17 00:04:06 +00003
4// Test with pch.
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00005// RUN: clang-cc -emit-pch -o %t %S/stmts.h
Douglas Gregor72971342009-04-18 00:02:19 +00006// RUN: clang-cc -include-pch %t -fsyntax-only -emit-llvm -o - %s
Douglas Gregor025452f2009-04-17 00:04:06 +00007
8void g0(void) { f0(5); }
Douglas Gregor0de9d882009-04-17 16:34:57 +00009int g1(int x) { return f1(x); }
Douglas Gregor84f21702009-04-17 16:55:36 +000010const char* query_name(void) { return what_is_my_name(); }
Douglas Gregor7d5c2f22009-04-17 18:58:21 +000011
12int use_computed_goto(int x) { return computed_goto(x); }
Douglas Gregor6a2dd552009-04-17 19:05:30 +000013
14int get_weird_max(int x, int y) { return weird_max(x, y); }