From: Eric Fiselier Date: Mon, 27 Oct 2014 21:38:23 +0000 (+0000) Subject: Add test to ensure including fails when _LIBCPP_HAS_NO_THREADS is defined. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2a6048b18304e7a86d59b6220611e30b8e06ec5;p=platform%2Fupstream%2Fllvm.git Add test to ensure including fails when _LIBCPP_HAS_NO_THREADS is defined. llvm-svn: 220722 --- diff --git a/libcxx/test/atomics/libcpp-has-no-threads.fail.cpp b/libcxx/test/atomics/libcpp-has-no-threads.fail.cpp new file mode 100644 index 0000000..fe95e6a --- /dev/null +++ b/libcxx/test/atomics/libcpp-has-no-threads.fail.cpp @@ -0,0 +1,23 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// + +// Test that including fails to compile when _LIBCPP_HAS_NO_THREADS +// is defined. + +#ifndef _LIBCPP_HAS_NO_THREADS +#define _LIBCPP_HAS_NO_THREADS +#endif + +#include + +int main() +{ +}