Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-pch -o %t --relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h |
| 2 | // RUN: clang-cc -include-pch %t -isysroot %S/libroot %s -verify |
Daniel Dunbar | f79ad5f | 2009-08-01 05:57:38 +0000 | [diff] [blame] | 3 | // RUN: not clang-cc -include-pch %t %s |
Douglas Gregor | e650c8c | 2009-07-07 00:12:59 +0000 | [diff] [blame] | 4 | |
| 5 | #include <reloc.h> |
| 6 | |
| 7 | int x = 2; // expected-error{{redefinition}} |
| 8 | int y = 5; // expected-error{{redefinition}} |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | // expected-note{{previous definition}} |
Daniel Dunbar | f79ad5f | 2009-08-01 05:57:38 +0000 | [diff] [blame] | 14 | // expected-note{{previous definition}} |