]> granicus.if.org Git - clang/commitdiff
This test was assuming that /usr/include was in the system header search
authorChandler Carruth <chandlerc@gmail.com>
Sun, 6 Nov 2011 06:59:15 +0000 (06:59 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 6 Nov 2011 06:59:15 +0000 (06:59 +0000)
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

test/PCH/reloc.c

index a772a824d45e42031b53b2d4ad32d329f74a29f4..5d51eee05db3caa7290c18b66dcfbad9ec77c42d 100644 (file)
@@ -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 <reloc.h>
 
@@ -8,7 +10,5 @@ int x = 2; // expected-error{{redefinition}}
 int y = 5; // expected-error{{redefinition}}
 
 
-
-
 // expected-note{{previous definition}}
 // expected-note{{previous definition}}