brintos

brintos / llvm-project-archived public Read only

0
0
Text · 640 B · b745318 Raw
30 lines · c
1// Test this without pch.2// RUN: %clang_cc1 -include %S/Inputs/chain-decls1.h -include %S/Inputs/chain-decls2.h -fsyntax-only -verify %s3 4// Test with pch.5// RUN: %clang_cc1 -emit-pch -o %t1 %S/Inputs/chain-decls1.h6// RUN: %clang_cc1 -emit-pch -o %t2 %S/Inputs/chain-decls2.h -include-pch %t17// RUN: %clang_cc1 -include-pch %t2 -fsyntax-only -verify %s8// RUN: %clang_cc1 -ast-print -include-pch %t2 %s | FileCheck %s9 10// expected-no-diagnostics11 12// CHECK: void f(void);13// CHECK: void g(void);14 15int h(void) {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