f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
14 lines
584 B
C
14 lines
584 B
C
// RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \
|
|
// RUN: -isysroot %S/libroot %S/libroot/usr/include/reloc.h
|
|
// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \
|
|
// RUN: -include-pch %t -isysroot %S/libroot %s -Xclang -verify
|
|
// RUN: not %clang -target x86_64-apple-darwin10 -include-pch %t %s
|
|
|
|
#include <reloc.h>
|
|
|
|
int x = 2; // expected-error{{redefinition}}
|
|
int y = 5; // expected-error{{redefinition}}
|
|
|
|
|
|
// expected-note@libroot/usr/include/reloc.h:13{{previous definition}}
|
|
// expected-note@libroot/usr/include/reloc2.h:14{{previous definition}}
|