blob: 14788f019f1370be359da487a1d5977aa93d6735 [file] [log] [blame]
Sebastian Pop9ec60df2012-01-20 22:01:23 +00001// RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \
Pirama Arumuga Nainar4967a712016-09-19 22:19:55 -07002// RUN: -isysroot %S/Inputs/libroot %S/Inputs/libroot/usr/include/reloc.h
Sebastian Pop9ec60df2012-01-20 22:01:23 +00003// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \
Pirama Arumuga Nainar4967a712016-09-19 22:19:55 -07004// RUN: -include-pch %t -isysroot %S/Inputs/libroot %s -Xclang -verify
Sebastian Pop9ec60df2012-01-20 22:01:23 +00005// RUN: not %clang -target x86_64-apple-darwin10 -include-pch %t %s
Pirama Arumuga Nainar87d948e2016-03-03 15:49:35 -08006// REQUIRES: x86-registered-target
NAKAMURA Takumi0f0cdab2011-05-02 04:50:10 +00007
Douglas Gregore650c8c2009-07-07 00:12:59 +00008#include <reloc.h>
9
10int x = 2; // expected-error{{redefinition}}
11int y = 5; // expected-error{{redefinition}}
12
13
Pirama Arumuga Nainar4967a712016-09-19 22:19:55 -070014// expected-note@Inputs/libroot/usr/include/reloc.h:13{{previous definition}}
15// expected-note@Inputs/libroot/usr/include/reloc2.h:14{{previous definition}}