Douglas Gregor | 88c9a46 | 2009-04-17 21:46:47 +0000 | [diff] [blame] | 1 | // Test this without pch. |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -include %S/multiple_decls.h -fsyntax-only -ast-print -o - %s |
Douglas Gregor | 88c9a46 | 2009-04-17 21:46:47 +0000 | [diff] [blame] | 3 | |
| 4 | // Test with pch. |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 5 | // RUN: %clang_cc1 -emit-pch -o %t %S/multiple_decls.h |
| 6 | // RUN: %clang_cc1 -include-pch %t -fsyntax-only -ast-print -o - %s |
Douglas Gregor | 88c9a46 | 2009-04-17 21:46:47 +0000 | [diff] [blame] | 7 | |
| 8 | void f0(char c) { |
| 9 | wide(c); |
| 10 | } |
| 11 | |
| 12 | struct wide w; |
| 13 | struct narrow n; |
| 14 | |
| 15 | void f1(int i) { |
| 16 | narrow(i); |
| 17 | } |