Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 1 | // RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \ |
Pirama Arumuga Nainar | 4967a71 | 2016-09-19 22:19:55 -0700 | [diff] [blame] | 2 | // RUN: -isysroot %S/Inputs/libroot %S/Inputs/libroot/usr/include/reloc.h |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 3 | // RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \ |
Pirama Arumuga Nainar | 4967a71 | 2016-09-19 22:19:55 -0700 | [diff] [blame] | 4 | // RUN: -include-pch %t -isysroot %S/Inputs/libroot %s -Xclang -verify |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 5 | // RUN: not %clang -target x86_64-apple-darwin10 -include-pch %t %s |
Pirama Arumuga Nainar | 87d948e | 2016-03-03 15:49:35 -0800 | [diff] [blame] | 6 | // REQUIRES: x86-registered-target |
NAKAMURA Takumi | 0f0cdab | 2011-05-02 04:50:10 +0000 | [diff] [blame] | 7 | |
Douglas Gregor | e650c8c | 2009-07-07 00:12:59 +0000 | [diff] [blame] | 8 | #include <reloc.h> |
| 9 | |
| 10 | int x = 2; // expected-error{{redefinition}} |
| 11 | int y = 5; // expected-error{{redefinition}} |
| 12 | |
| 13 | |
Pirama Arumuga Nainar | 4967a71 | 2016-09-19 22:19:55 -0700 | [diff] [blame] | 14 | // expected-note@Inputs/libroot/usr/include/reloc.h:13{{previous definition}} |
| 15 | // expected-note@Inputs/libroot/usr/include/reloc2.h:14{{previous definition}} |