Jordan Rose 8ba0fba28a Use %clang_cc1 so that the test works even if the target isn't available.
Xcode-style clang builds only support Xcode's architectures, so mips
isn't available and the driver tries to use gcc instead. cc1 will go
ahead and do -fsyntax-only for any platform it knows about even if it
can't actually compile.

llvm-svn: 164742
2012-09-27 01:40:12 +00:00

20 lines
1004 B
C

// RUN: %clang_cc1 -triple arm-unknown-linux-gnueabi \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
// RUN: %clang_cc1 -triple mips-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
// RUN: %clang_cc1 -triple i686-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
// RUN: %clang_cc1 -triple x86_64-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
// RUN: %clang_cc1 -triple arm-unknown-linux-gnueabi \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
// RUN: %clang_cc1 -triple mips-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
// RUN: %clang_cc1 -triple i686-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
// RUN: %clang_cc1 -triple x86_64-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
#include "unwind.h"