Mercurial > hg > CbC > CbC_llvm
view clang/test/PCH/reloc.c @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line source
// RUN: %clang -target x86_64-apple-darwin11 --relocatable-pch -o %t \ // RUN: -isysroot %S/Inputs/libroot %S/Inputs/libroot/usr/include/reloc.h // RUN: %clang -target x86_64-apple-darwin11 -fsyntax-only \ // RUN: -include-pch %t -isysroot %S/Inputs/libroot %s -Xclang -verify // RUN: not %clang -target x86_64-apple-darwin11 -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}}