blob: fd78feba604784dc1be3b378f3cf57c5404acacc [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-pch -o %t -relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h
2// RUN: %clang_cc1 -include-pch %t -isysroot %S/libroot %s -verify
3// RUN: not %clang_cc1 -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}}