Home | History | Annotate | Download | only in PCH
      1 // Without PCH
      2 // RUN: %clang_cc1 -fsyntax-only -verify %s -include %s -include %s
      3 
      4 // With PCH
      5 // RUN: %clang_cc1 -fsyntax-only -verify %s -chain-include %s -chain-include %s
      6 
      7 #ifndef HEADER1
      8 #define HEADER1
      9 
     10 @class I;
     11 
     12 #elif !defined(HEADER2)
     13 #define HEADER2
     14 
     15 @interface I
     16 @end
     17 
     18 #else
     19 
     20 typedef int I; // expected-error {{redefinition}}
     21                // expected-note@15 {{previous}}
     22 
     23 #endif
     24