r201484 - check-clang: Introduce the feature "non-ms-sdk" to suppress Driver/nostdincxx.cpp on msvc.
NAKAMURA Takumi
geek4civic at gmail.com
Sun Feb 16 02:15:57 PST 2014
Author: chapuni
Date: Sun Feb 16 04:15:57 2014
New Revision: 201484
URL: http://llvm.org/viewvc/llvm-project?rev=201484&view=rev
Log:
check-clang: Introduce the feature "non-ms-sdk" to suppress Driver/nostdincxx.cpp on msvc.
Modified:
cfe/trunk/test/Driver/nostdincxx.cpp
cfe/trunk/test/lit.cfg
Modified: cfe/trunk/test/Driver/nostdincxx.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/nostdincxx.cpp?rev=201484&r1=201483&r2=201484&view=diff
==============================================================================
--- cfe/trunk/test/Driver/nostdincxx.cpp (original)
+++ cfe/trunk/test/Driver/nostdincxx.cpp Sun Feb 16 04:15:57 2014
@@ -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
Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=201484&r1=201483&r2=201484&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Sun Feb 16 04:15:57 2014
@@ -340,6 +340,10 @@ if os.path.exists("/dev/fd/0") and sys.p
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')
More information about the cfe-commits
mailing list