diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2018-04-03 15:48:24 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2018-04-03 15:48:24 +0000 |
| commit | 082229eb0fd5cdf98c6c15ce697ab93eb4c41b42 (patch) | |
| tree | e150c30b8d0eb3528de10bfc98b68f925067146b /libcxx/test | |
| parent | fbf37cc6c6cc3b3728178435d03b7ce77ee13c92 (diff) | |
| download | bcm5719-llvm-082229eb0fd5cdf98c6c15ce697ab93eb4c41b42.tar.gz bcm5719-llvm-082229eb0fd5cdf98c6c15ce697ab93eb4c41b42.zip | |
Implement P0754R2: The <version> header.
llvm-svn: 329075
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() +{ +} |

