annotate clang/test/PCH/reloc.c @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \
anatofuz
parents:
diff changeset
2 // RUN: -isysroot %S/Inputs/libroot %S/Inputs/libroot/usr/include/reloc.h
anatofuz
parents:
diff changeset
3 // RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \
anatofuz
parents:
diff changeset
4 // RUN: -include-pch %t -isysroot %S/Inputs/libroot %s -Xclang -verify
anatofuz
parents:
diff changeset
5 // RUN: not %clang -target x86_64-apple-darwin10 -include-pch %t %s
anatofuz
parents:
diff changeset
6 // REQUIRES: x86-registered-target
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 #include <reloc.h>
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 int x = 2; // expected-error{{redefinition}}
anatofuz
parents:
diff changeset
11 int y = 5; // expected-error{{redefinition}}
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 // expected-note@Inputs/libroot/usr/include/reloc.h:13{{previous definition}}
anatofuz
parents:
diff changeset
15 // expected-note@Inputs/libroot/usr/include/reloc2.h:14{{previous definition}}