xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/reloc.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \
2 // RUN:   -isysroot %S/libroot %S/libroot/usr/include/reloc.h
3 // RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \
4 // RUN:   -include-pch %t -isysroot %S/libroot %s -Xclang -verify
5 // RUN: not %clang -target x86_64-apple-darwin10 -include-pch %t %s
6 
7 #include <reloc.h>
8 
9 int x = 2; // expected-error{{redefinition}}
10 int y = 5; // expected-error{{redefinition}}
11 
12 
13 // expected-note@libroot/usr/include/reloc.h:13{{previous definition}}
14 // expected-note@libroot/usr/include/reloc2.h:14{{previous definition}}
15