blob: 8dabb8b03d0b6547ee421e2ad65a0386dbc4ba84 [file] [log] [blame]
Sebastian Pop9ec60df2012-01-20 22:01:23 +00001// RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \
Chandler Carruth5b898cc2011-11-06 06:59:15 +00002// RUN: -isysroot %S/libroot %S/libroot/usr/include/reloc.h
Sebastian Pop9ec60df2012-01-20 22:01:23 +00003// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \
Chandler Carruth5b898cc2011-11-06 06:59:15 +00004// RUN: -include-pch %t -isysroot %S/libroot %s -Xclang -verify
Sebastian Pop9ec60df2012-01-20 22:01:23 +00005// RUN: not %clang -target x86_64-apple-darwin10 -include-pch %t %s
NAKAMURA Takumi0f0cdab2011-05-02 04:50:10 +00006
Douglas Gregore650c8c2009-07-07 00:12:59 +00007#include <reloc.h>
8
9int x = 2; // expected-error{{redefinition}}
10int y = 5; // expected-error{{redefinition}}
11
12
Andy Gibbsb42f2002013-04-17 08:06:46 +000013// expected-note@libroot/usr/include/reloc.h:13{{previous definition}}
14// expected-note@libroot/usr/include/reloc2.h:14{{previous definition}}