diff options
Diffstat (limited to 'test/std/atomics/libcpp-has-no-threads.pass.cpp')
-rw-r--r-- | test/std/atomics/libcpp-has-no-threads.pass.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/std/atomics/libcpp-has-no-threads.pass.cpp b/test/std/atomics/libcpp-has-no-threads.pass.cpp new file mode 100644 index 0000000000000..9c0cccbda380d --- /dev/null +++ b/test/std/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() +{ +} |