Douglas Gregor | 025452f | 2009-04-17 00:04:06 +0000 | [diff] [blame] | 1 | // Test this without pch. |
Douglas Gregor | 0de9d88 | 2009-04-17 16:34:57 +0000 | [diff] [blame] | 2 | // RUN: clang-cc -fblocks -include %S/stmts.h -fsyntax-only -ast-print -o - %s |
Douglas Gregor | 025452f | 2009-04-17 00:04:06 +0000 | [diff] [blame] | 3 | |
| 4 | // Test with pch. |
| 5 | // RUN: clang-cc -emit-pch -fblocks -o %t %S/stmts.h && |
Douglas Gregor | 0de9d88 | 2009-04-17 16:34:57 +0000 | [diff] [blame] | 6 | // RUN: clang-cc -fblocks -include-pch %t -fsyntax-only -ast-print -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); } |