diff options
Diffstat (limited to 'libcxx/test')
| -rw-r--r-- | libcxx/test/libcxx/language.support/support.limits/version.pass.cpp | 23 | ||||
| -rw-r--r-- | libcxx/test/std/language.support/support.limits/version.pass.cpp | 17 |
2 files changed, 40 insertions, 0 deletions
diff --git a/libcxx/test/libcxx/language.support/support.limits/version.pass.cpp b/libcxx/test/libcxx/language.support/support.limits/version.pass.cpp new file mode 100644 index 00000000000..2a371881e82 --- /dev/null +++ b/libcxx/test/libcxx/language.support/support.limits/version.pass.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. +// +//===----------------------------------------------------------------------===// + +// <version> +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: clang-3.3, clang-3.4, clang-3.5, clang-3.6, clang-3.7 +// UNSUPPORTED: clang-3.8, clang-3.9, clang-4.0, clang-5.0, clang-6.0 + +#include <version> + +#if !defined(_LIBCPP_VERSION) +#error "_LIBCPP_VERSION must be defined after including <version>" +#endif + +int main() +{ +} diff --git a/libcxx/test/std/language.support/support.limits/version.pass.cpp b/libcxx/test/std/language.support/support.limits/version.pass.cpp new file mode 100644 index 00000000000..c41f492bbed --- /dev/null +++ b/libcxx/test/std/language.support/support.limits/version.pass.cpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <version> +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 + +#include <version> + +int main() +{ +} |

