xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/replaced-decl.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// Without PCH
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s -include %s -include %s
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc// With PCH
5*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s -chain-include %s -chain-include %s
6*f4a2713aSLionel Sambuc
7*f4a2713aSLionel Sambuc#ifndef HEADER1
8*f4a2713aSLionel Sambuc#define HEADER1
9*f4a2713aSLionel Sambuc
10*f4a2713aSLionel Sambuc@class I;
11*f4a2713aSLionel Sambuc
12*f4a2713aSLionel Sambuc#elif !defined(HEADER2)
13*f4a2713aSLionel Sambuc#define HEADER2
14*f4a2713aSLionel Sambuc
15*f4a2713aSLionel Sambuc@interface I
16*f4a2713aSLionel Sambuc@end
17*f4a2713aSLionel Sambuc
18*f4a2713aSLionel Sambuc#else
19*f4a2713aSLionel Sambuc
20*f4a2713aSLionel Sambuctypedef int I; // expected-error {{redefinition}}
21*f4a2713aSLionel Sambuc               // expected-note@15 {{previous}}
22*f4a2713aSLionel Sambuc
23*f4a2713aSLionel Sambuc#endif
24