[cfe-commits] r164679 - /cfe/trunk/test/Headers/unwind.c

Benjamin Kramer benny.kra at googlemail.com
Wed Sep 26 02:10:53 PDT 2012


Author: d0k
Date: Wed Sep 26 04:10:53 2012
New Revision: 164679

URL: http://llvm.org/viewvc/llvm-project?rev=164679&view=rev
Log:
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.

Modified:
    cfe/trunk/test/Headers/unwind.c

Modified: cfe/trunk/test/Headers/unwind.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/unwind.c?rev=164679&r1=164678&r2=164679&view=diff
==============================================================================
--- cfe/trunk/test/Headers/unwind.c (original)
+++ cfe/trunk/test/Headers/unwind.c Wed Sep 26 04:10:53 2012
@@ -1,6 +1,5 @@
-// RUN: %clang -target arm-unknown-linux-gnueabi %s -fsyntax-only -o -
-// RUN: %clang -target i686-unknown-linux %s -fsyntax-only -o -
+// RUN: %clang -target arm-unknown-linux-gnueabi -ffreestanding -fsyntax-only %s
+// RUN: %clang -target i686-unknown-linux -ffreestanding -fsyntax-only %s
+// RUN: %clang -ffreestanding -fsyntax-only -x c++ %s
 
 #include "unwind.h"
-// CHECK-NOT: error
-// CHECK-NOT: warning





More information about the cfe-commits mailing list