[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / chain-decls.c
blobb745318c091ef97c733ef9097eaba7e2e09d71dc
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
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
10 // expected-no-diagnostics
12 // CHECK: void f(void);
13 // CHECK: void g(void);
15 int h(void) {
16 f();
17 g();
19 struct one x;
20 one();
21 struct two y;
22 two();
23 struct three z;
25 many(0);
26 struct many m;
28 noret();