blob: e2cc552336ea2976e4a939e4b8af6338053d4671 [file] [log] [blame]
Douglas Gregor88c9a462009-04-17 21:46:47 +00001// Test this without pch.
Daniel Dunbara5728872009-12-15 20:14:24 +00002// RUN: %clang_cc1 -include %S/multiple_decls.h -fsyntax-only -ast-print -o - %s
Douglas Gregor88c9a462009-04-17 21:46:47 +00003
4// Test with pch.
Daniel Dunbara5728872009-12-15 20:14:24 +00005// 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 Gregor88c9a462009-04-17 21:46:47 +00007
8void f0(char c) {
9 wide(c);
10}
11
12struct wide w;
13struct narrow n;
14
15void f1(int i) {
16 narrow(i);
17}