[libcxx] r220729 - Test that the single-threaded lit feature is available iff the corresponding guard is #defined

Jonathan Roelofs jonathan at codesourcery.com
Mon Oct 27 15:39:19 PDT 2014


Author: jroelofs
Date: Mon Oct 27 17:39:19 2014
New Revision: 220729

URL: http://llvm.org/viewvc/llvm-project?rev=220729&view=rev
Log:
Test that the single-threaded lit feature is available iff the corresponding guard is #defined

http://reviews.llvm.org/D6006

Added:
    libcxx/trunk/test/atomics/libcpp-has-no-threads.pass.cpp

Added: libcxx/trunk/test/atomics/libcpp-has-no-threads.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/atomics/libcpp-has-no-threads.pass.cpp?rev=220729&view=auto
==============================================================================
--- libcxx/trunk/test/atomics/libcpp-has-no-threads.pass.cpp (added)
+++ libcxx/trunk/test/atomics/libcpp-has-no-threads.pass.cpp Mon Oct 27 17:39:19 2014
@@ -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()
+{
+}





More information about the cfe-commits mailing list