From 576717d499fb29c9d1ea76be0a0995c53cea35d8 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 4 Apr 2018 04:21:54 +0000 Subject: [PATCH] Touch up tests for new header; fix module.modulemap. This patch does some housekeeping for the new header. It adds it to the module.modulemap, and the double_include.sh.cpp test. Additionally it corrects the // UNSUPPORTED options for the libc++ specific test. The header needs to compile under C++03 to support modules, and it should compile under all available compilers. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@329144 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/module.modulemap | 4 ++++ test/libcxx/double_include.sh.cpp | 1 + test/libcxx/language.support/support.limits/version.pass.cpp | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/module.modulemap b/include/module.modulemap index 076ef2334..cf92fa0d8 100644 --- a/include/module.modulemap +++ b/include/module.modulemap @@ -470,6 +470,10 @@ module std [system] { export initializer_list export * } + module version { + header "version" + export * + } // FIXME: These should be private. module __bit_reference { header "__bit_reference" export * } diff --git a/test/libcxx/double_include.sh.cpp b/test/libcxx/double_include.sh.cpp index 462c685e5..736ac3ba0 100644 --- a/test/libcxx/double_include.sh.cpp +++ b/test/libcxx/double_include.sh.cpp @@ -129,6 +129,7 @@ #include #include #include +#include #include #include diff --git a/test/libcxx/language.support/support.limits/version.pass.cpp b/test/libcxx/language.support/support.limits/version.pass.cpp index 2a371881e..c79a69085 100644 --- a/test/libcxx/language.support/support.limits/version.pass.cpp +++ b/test/libcxx/language.support/support.limits/version.pass.cpp @@ -8,9 +8,6 @@ //===----------------------------------------------------------------------===// // -// 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