Home | History | Annotate | Download | only in PCH
      1 // RUN: %clang_cc1 -emit-pch -o %t -relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h
      2 // RUN: %clang_cc1 -include-pch %t -isysroot %S/libroot %s -verify
      3 // RUN: not %clang_cc1 -include-pch %t %s
      4 
      5 #include <reloc.h>
      6 
      7 int x = 2; // expected-error{{redefinition}}
      8 int y = 5; // expected-error{{redefinition}}
      9 
     10 
     11 
     12 
     13 // expected-note{{previous definition}}
     14 // expected-note{{previous definition}}
     15