Douglas Gregor | 88c9a46 | 2009-04-17 21:46:47 +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/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 | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: clang-cc -emit-pch -o %t %S/multiple_decls.h |
Douglas Gregor | 88c9a46 | 2009-04-17 21:46:47 +0000 | [diff] [blame] | 6 | // RUN: clang-cc -include-pch %t -fsyntax-only -ast-print -o - %s |
| 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 | } |