]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/PCH/reloc.c
Vendor import of clang trunk r242221:
[FreeBSD/FreeBSD.git] / test / PCH / reloc.c
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 // REQUIRES: x86-registered-target
7
8 #include <reloc.h>
9
10 int x = 2; // expected-error{{redefinition}}
11 int y = 5; // expected-error{{redefinition}}
12
13
14 // expected-note@libroot/usr/include/reloc.h:13{{previous definition}}
15 // expected-note@libroot/usr/include/reloc2.h:14{{previous definition}}