Run test in a freestanding environment so it doesn't accidentally pick up system headers for the wrong target.

While there add a test that verifies that the header parses in C++ mode.

llvm-svn: 164679
This commit is contained in:
Benjamin Kramer 2012-09-26 09:10:53 +00:00
parent c05ecd5b17
commit 010f114093
1 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,5 @@
// RUN: %clang -target arm-unknown-linux-gnueabi %s -fsyntax-only -o - // RUN: %clang -target arm-unknown-linux-gnueabi -ffreestanding -fsyntax-only %s
// RUN: %clang -target i686-unknown-linux %s -fsyntax-only -o - // RUN: %clang -target i686-unknown-linux -ffreestanding -fsyntax-only %s
// RUN: %clang -ffreestanding -fsyntax-only -x c++ %s
#include "unwind.h" #include "unwind.h"
// CHECK-NOT: error
// CHECK-NOT: warning