blob: 36247d50296e1ea39a1849309ca78b1df23e4a6a [file] [log] [blame]
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00001// RUN: clang-cc -emit-pch -o %t --relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h
2// 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}}