blob: 5d51eee05db3caa7290c18b66dcfbad9ec77c42d [file] [log] [blame]
Eli Friedman31cbe682012-01-13 21:33:06 +00001// RUN: %clang -ccc-host-triple 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
Eli Friedman31cbe682012-01-13 21:33:06 +00003// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -fsyntax-only \
Chandler Carruth5b898cc2011-11-06 06:59:15 +00004// RUN: -include-pch %t -isysroot %S/libroot %s -Xclang -verify
Eli Friedman31cbe682012-01-13 21:33:06 +00005// RUN: not %clang -ccc-host-triple 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
Douglas Gregore650c8c2009-07-07 00:12:59 +000013// expected-note{{previous definition}}
Daniel Dunbarf79ad5f2009-08-01 05:57:38 +000014// expected-note{{previous definition}}