xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/multiple_decls.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // Test this without pch.
2 // RUN: %clang_cc1 -include %S/multiple_decls.h -fsyntax-only -ast-print -o - %s
3 
4 // Test with pch.
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
7 
f0(char c)8 void f0(char c) {
9   wide(c);
10 }
11 
12 struct wide w;
13 struct narrow n;
14 
f1(int i)15 void f1(int i) {
16   narrow(i);
17 }
18