mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 18:11:19 +00:00
2a15ffa2bf
This version should actually remove the empty directories I removed all of the files from. Thanks to tstellar for pointing out git-svn's --rmdir flag. Original message: This creates make/ninja targets like check-clang-codegen and check-clang-unit, much like LLVM already has. I had to move some input files into Input directories so they weren't picked up as test directories. llvm-svn: 274565
16 lines
654 B
C
16 lines
654 B
C
// RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \
|
|
// RUN: -isysroot %S/Inputs/libroot %S/Inputs/libroot/usr/include/reloc.h
|
|
// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \
|
|
// RUN: -include-pch %t -isysroot %S/Inputs/libroot %s -Xclang -verify
|
|
// RUN: not %clang -target x86_64-apple-darwin10 -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}}
|