Douglas Gregor | 025452f | 2009-04-17 00:04:06 +0000 | [diff] [blame] | 1 | // Test this without pch. |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 2 | // RUN: clang-cc -include %S/stmts.h -fsyntax-only -emit-llvm -o - %s |
Douglas Gregor | 025452f | 2009-04-17 00:04:06 +0000 | [diff] [blame] | 3 | |
| 4 | // Test with pch. |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: clang-cc -emit-pch -o %t %S/stmts.h |
Douglas Gregor | 7297134 | 2009-04-18 00:02:19 +0000 | [diff] [blame] | 6 | // RUN: clang-cc -include-pch %t -fsyntax-only -emit-llvm -o - %s |
Douglas Gregor | 025452f | 2009-04-17 00:04:06 +0000 | [diff] [blame] | 7 | |
| 8 | void g0(void) { f0(5); } |
Douglas Gregor | 0de9d88 | 2009-04-17 16:34:57 +0000 | [diff] [blame] | 9 | int g1(int x) { return f1(x); } |
Douglas Gregor | 84f2170 | 2009-04-17 16:55:36 +0000 | [diff] [blame] | 10 | const char* query_name(void) { return what_is_my_name(); } |
Douglas Gregor | 7d5c2f2 | 2009-04-17 18:58:21 +0000 | [diff] [blame] | 11 | |
| 12 | int use_computed_goto(int x) { return computed_goto(x); } |
Douglas Gregor | 6a2dd55 | 2009-04-17 19:05:30 +0000 | [diff] [blame] | 13 | |
| 14 | int get_weird_max(int x, int y) { return weird_max(x, y); } |