1// Test this without pch. 2// RUN: %clang_cc1 -include %S/Inputs/chain-decls1.h -include %S/Inputs/chain-decls2.h -fsyntax-only -verify %s 3 4// Test with pch. 5// RUN: %clang_cc1 -emit-pch -o %t1 %S/Inputs/chain-decls1.h 6// RUN: %clang_cc1 -emit-pch -o %t2 %S/Inputs/chain-decls2.h -include-pch %t1 7// RUN: %clang_cc1 -include-pch %t2 -fsyntax-only -verify %s 8// RUN: %clang_cc1 -ast-print -include-pch %t2 %s | FileCheck %s 9 10// CHECK: void f(); 11// CHECK: void g(); 12 13int h() { 14 f(); 15 g(); 16 17 struct one x; 18 one(); 19 struct two y; 20 two(); 21 struct three z; 22 23 many(0); 24 struct many m; 25 26 noret(); 27} 28