[cfe-commits] r143863 - /cfe/trunk/test/PCH/reloc.c
Chandler Carruth
chandlerc at gmail.com
Sat Nov 5 23:59:16 PDT 2011
Author: chandlerc
Date: Sun Nov 6 01:59:15 2011
New Revision: 143863
URL: http://llvm.org/viewvc/llvm-project?rev=143863&view=rev
Log:
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.
Modified:
cfe/trunk/test/PCH/reloc.c
Modified: cfe/trunk/test/PCH/reloc.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/reloc.c?rev=143863&r1=143862&r2=143863&view=diff
==============================================================================
--- cfe/trunk/test/PCH/reloc.c (original)
+++ cfe/trunk/test/PCH/reloc.c Sun Nov 6 01:59:15 2011
@@ -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 y = 5; // expected-error{{redefinition}}
-
-
// expected-note{{previous definition}}
// expected-note{{previous definition}}
More information about the cfe-commits
mailing list