blob: ba8e70db024afecf2dd66032b92fd05712b8d525 [file] [log] [blame]
Daniel Dunbar8a90ac02009-11-29 09:33:10 +00001// RUN: clang-cc -emit-pch -o %t -relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: clang-cc -include-pch %t -isysroot %S/libroot %s -verify
Daniel Dunbarf79ad5f2009-08-01 05:57:38 +00003// RUN: not clang-cc -include-pch %t %s
Douglas Gregore650c8c2009-07-07 00:12:59 +00004
5#include <reloc.h>
6
7int x = 2; // expected-error{{redefinition}}
8int y = 5; // expected-error{{redefinition}}
9
10
11
12
13// expected-note{{previous definition}}
Daniel Dunbarf79ad5f2009-08-01 05:57:38 +000014// expected-note{{previous definition}}