You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
654 B
16 lines
654 B
// RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \
|
|
// RUN: -isysroot %S/Inputs/libroot %S/Inputs/libroot/usr/include/reloc.h
|
|
// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \
|
|
// RUN: -include-pch %t -isysroot %S/Inputs/libroot %s -Xclang -verify
|
|
// RUN: not %clang -target x86_64-apple-darwin10 -include-pch %t %s
|
|
// REQUIRES: x86-registered-target
|
|
|
|
#include <reloc.h>
|
|
|
|
int x = 2; // expected-error{{redefinition}}
|
|
int y = 5; // expected-error{{redefinition}}
|
|
|
|
|
|
// expected-note@Inputs/libroot/usr/include/reloc.h:13{{previous definition}}
|
|
// expected-note@Inputs/libroot/usr/include/reloc2.h:14{{previous definition}}
|