2011-11-05 18:15:30 +08:00
|
|
|
// RUN: %clang --relocatable-pch -o %t -isysroot %S/libroot %S/libroot/usr/include/reloc.h
|
|
|
|
// RUN: %clang -fsyntax-only -include-pch %t -isysroot %S/libroot %s -Xclang -verify
|
|
|
|
// RUN: not %clang -include-pch %t %s
|
2011-05-02 12:50:10 +08:00
|
|
|
|
2009-07-07 08:12:59 +08:00
|
|
|
#include <reloc.h>
|
|
|
|
|
|
|
|
int x = 2; // expected-error{{redefinition}}
|
|
|
|
int y = 5; // expected-error{{redefinition}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// expected-note{{previous definition}}
|
2009-08-01 13:57:38 +08:00
|
|
|
// expected-note{{previous definition}}
|