[libcxx] r339212 - [libcxx] [test] Remove asserts that <cstddef> and <stdexcept> are included by <bitset>

Billy Robert O'Neal III via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 7 17:43:38 PDT 2018


Author: bion
Date: Tue Aug  7 17:43:38 2018
New Revision: 339212

URL: http://llvm.org/viewvc/llvm-project?rev=339212&view=rev
Log:
[libcxx] [test] Remove asserts that <cstddef> and <stdexcept> are included by <bitset>

Reviewed as https://reviews.llvm.org/D50421

Modified:
    libcxx/trunk/test/std/utilities/template.bitset/includes.pass.cpp

Modified: libcxx/trunk/test/std/utilities/template.bitset/includes.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/includes.pass.cpp?rev=339212&r1=339211&r2=339212&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/includes.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/includes.pass.cpp Tue Aug  7 17:43:38 2018
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-// test that <bitset> includes <cstddef>, <string>, <stdexcept> and <iosfwd>
+// test that <bitset> includes <string> and <iosfwd>
 
 #include <bitset>
 
@@ -15,18 +15,9 @@ template <class> void test_typedef() {}
 
 int main()
 {
-  { // test for <cstddef>
-    std::ptrdiff_t p; ((void)p);
-    std::size_t s; ((void)s);
-    std::nullptr_t np; ((void)np);
-  }
   { // test for <string>
     std::string s; ((void)s);
   }
-  { // test for <stdexcept>
-    std::logic_error le("blah"); ((void)le);
-    std::runtime_error re("blah"); ((void)re);
-  }
   { // test for <iosfwd>
     test_typedef<std::ios>();
     test_typedef<std::wios>();




More information about the cfe-commits mailing list