diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-11-07 10:33:32 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-11-07 10:33:32 +0000 |
commit | cc2565b368f1e99fb15a6fc7419b1b87d86c1880 (patch) | |
tree | 423192b5fc75a2dd221a526ce4511e91e0e6e065 | |
parent | b6de5048f69b2c750eb86263189cf7809102f271 (diff) |
Merging r143863:
------------------------------------------------------------------------
r143863 | chandlerc | 2011-11-05 23:59:15 -0700 (Sat, 05 Nov 2011) | 4 lines
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/branches/release_30@143945 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}} |