diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-11-06 06:59:15 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-11-06 06:59:15 +0000 |
commit | 5b898cc987a0717538caa161a1c25343c3b6cd6f (patch) | |
tree | 98c0e38e1cc38d56a9932375edffdd4232c43895 | |
parent | 997a1c05eebe0fc2667ced2610d196227724629c (diff) |
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
-rw-r--r-- | test/PCH/reloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 <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}} |