From: Chandler Carruth Date: Sun, 6 Nov 2011 06:59:15 +0000 (+0000) Subject: This test was assuming that /usr/include was in the system header search X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b898cc987a0717538caa161a1c25343c3b6cd6f;p=clang This test was assuming that /usr/include was in the system header search path. That assumption should never have been true, but it was until I fixed it. Now that its fixed, add a triple here to get correct behavior even on Windows. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143863 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/PCH/reloc.c b/test/PCH/reloc.c index a772a824d4..5d51eee05d 100644 --- a/test/PCH/reloc.c +++ b/test/PCH/reloc.c @@ -1,6 +1,8 @@ -// RUN: %clang --relocatable-pch -o %t -isysroot %S/libroot %S/libroot/usr/include/reloc.h -// RUN: %clang -fsyntax-only -include-pch %t -isysroot %S/libroot %s -Xclang -verify -// RUN: not %clang -include-pch %t %s +// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 --relocatable-pch -o %t \ +// RUN: -isysroot %S/libroot %S/libroot/usr/include/reloc.h +// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -fsyntax-only \ +// RUN: -include-pch %t -isysroot %S/libroot %s -Xclang -verify +// RUN: not %clang -ccc-host-triple x86_64-apple-darwin10 -include-pch %t %s #include @@ -8,7 +10,5 @@ int x = 2; // expected-error{{redefinition}} int y = 5; // expected-error{{redefinition}} - - // expected-note{{previous definition}} // expected-note{{previous definition}}