[libcxx] r329144 - Touch up tests for new <version> header; fix module.modulemap.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 3 21:21:54 PDT 2018


Author: ericwf
Date: Tue Apr  3 21:21:54 2018
New Revision: 329144

URL: http://llvm.org/viewvc/llvm-project?rev=329144&view=rev
Log:
Touch up tests for new <version> header; fix module.modulemap.

This patch does some housekeeping for the new <version> 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.

Modified:
    libcxx/trunk/include/module.modulemap
    libcxx/trunk/test/libcxx/double_include.sh.cpp
    libcxx/trunk/test/libcxx/language.support/support.limits/version.pass.cpp

Modified: libcxx/trunk/include/module.modulemap
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/module.modulemap?rev=329144&r1=329143&r2=329144&view=diff
==============================================================================
--- libcxx/trunk/include/module.modulemap (original)
+++ libcxx/trunk/include/module.modulemap Tue Apr  3 21:21:54 2018
@@ -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 * }

Modified: libcxx/trunk/test/libcxx/double_include.sh.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/double_include.sh.cpp?rev=329144&r1=329143&r2=329144&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/double_include.sh.cpp (original)
+++ libcxx/trunk/test/libcxx/double_include.sh.cpp Tue Apr  3 21:21:54 2018
@@ -129,6 +129,7 @@
 #include <valarray>
 #include <variant>
 #include <vector>
+#include <version>
 #include <wchar.h>
 #include <wctype.h>
 

Modified: libcxx/trunk/test/libcxx/language.support/support.limits/version.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/language.support/support.limits/version.pass.cpp?rev=329144&r1=329143&r2=329144&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/language.support/support.limits/version.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/language.support/support.limits/version.pass.cpp Tue Apr  3 21:21:54 2018
@@ -8,9 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 // <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>
 




More information about the cfe-commits mailing list