2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \
|
2011-11-06 14:59:15 +08:00
|
|
|
// RUN: -isysroot %S/libroot %S/libroot/usr/include/reloc.h
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \
|
2011-11-06 14:59:15 +08:00
|
|
|
// RUN: -include-pch %t -isysroot %S/libroot %s -Xclang -verify
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: not %clang -target x86_64-apple-darwin10 -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}}
|