// RUN: clang-cc -emit-pch -o %t --relocatable-pch -isysroot `pwd`/libroot `pwd`/libroot/usr/include/reloc.h &&
// RUN: clang-cc -include-pch %t -isysroot `pwd`/libroot %s -verify
// FIXME (test harness can't do this?): not clang-cc -include-pch %t %s

#include <reloc.h>

int x = 2; // expected-error{{redefinition}}
int y = 5; // expected-error{{redefinition}}




// expected-note{{previous definition}}
// expected-note{{previous definition}}
// RUN: clang-cc -emit-pch -o %t --relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h &&
// RUN: clang-cc -include-pch %t -isysroot %S/libroot %s -verify &&
// RUN: not clang-cc -include-pch %t %s

#include <reloc.h>

int x = 2; // expected-error{{redefinition}}
int y = 5; // expected-error{{redefinition}}




// expected-note{{previous definition}}
// expected-note{{previous definition}}

Use %S, not `pwd`, and enable a line that *does* work. - Doug, please check.
Use %S, not `pwd`, and enable a line that *does* work.
 - Doug, please check.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@77778 91177308-0d34-0410-b5e6-96231b3b80d8
