summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorJonathan Roelofs <jonathan@codesourcery.com>2014-10-27 22:39:19 +0000
committerJonathan Roelofs <jonathan@codesourcery.com>2014-10-27 22:39:19 +0000
commit33c2c02e250d1bbbe762980ba0b4e83a94615f97 (patch)
tree04b489ffedb399d5476be939bc62d92597815739 /libcxx/test
parent7c801dc90b0dfda7ec74738cdf15c009fa92efeb (diff)
downloadbcm5719-llvm-33c2c02e250d1bbbe762980ba0b4e83a94615f97.tar.gz
bcm5719-llvm-33c2c02e250d1bbbe762980ba0b4e83a94615f97.zip
Test that the single-threaded lit feature is available iff the corresponding guard is #defined
http://reviews.llvm.org/D6006 llvm-svn: 220729
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/atomics/libcpp-has-no-threads.pass.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/libcxx/test/atomics/libcpp-has-no-threads.pass.cpp b/libcxx/test/atomics/libcpp-has-no-threads.pass.cpp
new file mode 100644
index 00000000000..9c0cccbda38
--- /dev/null
+++ b/libcxx/test/atomics/libcpp-has-no-threads.pass.cpp
@@ -0,0 +1,18 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+// XFAIL: libcpp-has-no-threads
+
+#ifdef _LIBCPP_HAS_NO_THREADS
+#error This should be XFAIL'd for the purpose of detecting that the LIT feature\
+ 'libcpp-has-no-threads' is available iff _LIBCPP_HAS_NO_THREADS is defined
+#endif
+
+int main()
+{
+}
OpenPOWER on IntegriCloud