]> granicus.if.org Git - clang/commitdiff
check-clang: Introduce the feature "non-ms-sdk" to suppress Driver/nostdincxx.cpp...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 16 Feb 2014 10:15:57 +0000 (10:15 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 16 Feb 2014 10:15:57 +0000 (10:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201484 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/nostdincxx.cpp
test/lit.cfg

index 1e1d85f358301a5e24ff53f0d357011f9c414c2e..126828de9ac266659a7b723834083dc137d37b9c 100644 (file)
@@ -1,4 +1,6 @@
 // RUN: not %clangxx -nostdinc++ %s 2>&1 | FileCheck %s
-// XFAIL: win32
 // CHECK: file not found
 #include <vector> 
+
+// MSVC has C++ headers in same directory as C headers.
+// REQUIRES: non-ms-sdk
index e86628fe17b5831bf525c0353ee35b81bccdc168..b75b4bcf3c99c47ee00994ef039f3fb3948fc16d 100644 (file)
@@ -340,6 +340,10 @@ if os.path.exists("/dev/fd/0") and sys.platform not in ['cygwin']:
 if not re.match(r'.*-win32$', config.target_triple):
     config.available_features.add('dw2')
 
+# Not set on native MS environment.
+if not re.match(r'.*-win32$', config.target_triple):
+    config.available_features.add('non-ms-sdk')
+
 # [PR8833] LLP64-incompatible tests
 if not re.match(r'^x86_64.*-(win32|mingw32)$', config.target_triple):
     config.available_features.add('LP64')