diff options
Diffstat (limited to 'clang/test/PCH/multiple_decls.c')
-rw-r--r-- | clang/test/PCH/multiple_decls.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/PCH/multiple_decls.c b/clang/test/PCH/multiple_decls.c new file mode 100644 index 00000000000..f73567ed01d --- /dev/null +++ b/clang/test/PCH/multiple_decls.c @@ -0,0 +1,17 @@ +// Test this without pch. +// RUN: clang-cc -include %S/multiple_decls.h -fsyntax-only -ast-print -o - %s + +// Test with pch. +// RUN: clang-cc -emit-pch -o %t %S/multiple_decls.h && +// RUN: clang-cc -include-pch %t -fsyntax-only -ast-print -o - %s + +void f0(char c) { + wide(c); +} + +struct wide w; +struct narrow n; + +void f1(int i) { + narrow(i); +} |