xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/reinclude.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // Test without PCH
2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -include %S/reinclude1.h -include %S/reinclude2.h -fsyntax-only -verify
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -x c++-header %S/reinclude1.h -emit-pch -o %t1
5*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -x c++-header %S/reinclude2.h -include-pch %t1 -emit-pch -o %t2
6*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -include-pch %t2 -fsyntax-only -verify
7*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -x c++-header %S/reinclude2.h -include-pch %t1 -emit-pch -o %t2
8*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -include-pch %t2 -fsyntax-only -verify
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc // expected-no-diagnostics
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc int q2 = A::y;
13