brintos

brintos / llvm-project-archived public Read only

0
0
Text · 394 B · 5636a57 Raw
24 lines · plain
1// Without PCH2// RUN: %clang_cc1 -fsyntax-only -verify %s -include %s -include %s3 4// With PCH5// RUN: %clang_cc1 -fsyntax-only -verify %s -chain-include %s -chain-include %s6 7#ifndef HEADER18#define HEADER19 10@class I;11 12#elif !defined(HEADER2)13#define HEADER214 15@interface I16@end17 18#else19 20typedef int I; // expected-error {{redefinition}}21               // expected-note@15 {{previous}}22 23#endif24