1*67e74705SXin Li // RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \ 2*67e74705SXin Li // RUN: -isysroot %S/Inputs/libroot %S/Inputs/libroot/usr/include/reloc.h 3*67e74705SXin Li // RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \ 4*67e74705SXin Li // RUN: -include-pch %t -isysroot %S/Inputs/libroot %s -Xclang -verify 5*67e74705SXin Li // RUN: not %clang -target x86_64-apple-darwin10 -include-pch %t %s 6*67e74705SXin Li // REQUIRES: x86-registered-target 7*67e74705SXin Li 8*67e74705SXin Li #include <reloc.h> 9*67e74705SXin Li 10*67e74705SXin Li int x = 2; // expected-error{{redefinition}} 11*67e74705SXin Li int y = 5; // expected-error{{redefinition}} 12*67e74705SXin Li 13*67e74705SXin Li 14*67e74705SXin Li // expected-note@Inputs/libroot/usr/include/reloc.h:13{{previous definition}} 15*67e74705SXin Li // expected-note@Inputs/libroot/usr/include/reloc2.h:14{{previous definition}} 16