Eli Friedman | 31cbe68 | 2012-01-13 21:33:06 +0000 | [diff] [blame] | 1 | // RUN: %clang -ccc-host-triple x86_64-apple-darwin10 --relocatable-pch -o %t \ |
Chandler Carruth | 5b898cc | 2011-11-06 06:59:15 +0000 | [diff] [blame] | 2 | // RUN: -isysroot %S/libroot %S/libroot/usr/include/reloc.h |
Eli Friedman | 31cbe68 | 2012-01-13 21:33:06 +0000 | [diff] [blame] | 3 | // RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -fsyntax-only \ |
Chandler Carruth | 5b898cc | 2011-11-06 06:59:15 +0000 | [diff] [blame] | 4 | // RUN: -include-pch %t -isysroot %S/libroot %s -Xclang -verify |
Eli Friedman | 31cbe68 | 2012-01-13 21:33:06 +0000 | [diff] [blame] | 5 | // RUN: not %clang -ccc-host-triple x86_64-apple-darwin10 -include-pch %t %s |
NAKAMURA Takumi | 0f0cdab | 2011-05-02 04:50:10 +0000 | [diff] [blame] | 6 | |
Douglas Gregor | e650c8c | 2009-07-07 00:12:59 +0000 | [diff] [blame] | 7 | #include <reloc.h> |
| 8 | |
| 9 | int x = 2; // expected-error{{redefinition}} |
| 10 | int y = 5; // expected-error{{redefinition}} |
| 11 | |
| 12 | |
Douglas Gregor | e650c8c | 2009-07-07 00:12:59 +0000 | [diff] [blame] | 13 | // expected-note{{previous definition}} |
Daniel Dunbar | f79ad5f | 2009-08-01 05:57:38 +0000 | [diff] [blame] | 14 | // expected-note{{previous definition}} |