blob: fd78feba604784dc1be3b378f3cf57c5404acacc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// RUN: %clang_cc1 -emit-pch -o %t -relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h
// RUN: %clang_cc1 -include-pch %t -isysroot %S/libroot %s -verify
// RUN: not %clang_cc1 -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}}
|