16 lines · c
1// RUN: %clang -target x86_64-apple-darwin11 --relocatable-pch -o %t \2// RUN: -isysroot %S/Inputs/libroot %S/Inputs/libroot/usr/include/reloc.h3// RUN: %clang -target x86_64-apple-darwin11 -fsyntax-only \4// RUN: -include-pch %t -isysroot %S/Inputs/libroot %s -Xclang -verify5// RUN: not %clang -target x86_64-apple-darwin11 -include-pch %t %s6// REQUIRES: x86-registered-target7 8#include <reloc.h>9 10int x = 2; // expected-error{{redefinition}}11int y = 5; // expected-error{{redefinition}}12 13 14// expected-note@Inputs/libroot/usr/include/reloc.h:13{{previous definition}}15// expected-note@Inputs/libroot/usr/include/reloc2.h:14{{previous definition}}16