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 // expected-no-diagnostics
11 
12 // CHECK: void f();
13 // CHECK: void g();
14 
h()15 int h() {
16   f();
17   g();
18 
19   struct one x;
20   one();
21   struct two y;
22   two();
23   struct three z;
24 
25   many(0);
26   struct many m;
27 
28   noret();
29 }
30