[PATCH] D50421: [libcxx] [test] Remove assertion that <bitset> includes <cstddef> and <stdexcept>.

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


BillyONeal updated this revision to Diff 159632.
BillyONeal added a comment.

Remove comma.


https://reviews.llvm.org/D50421

Files:
  test/std/utilities/template.bitset/includes.pass.cpp


Index: test/std/utilities/template.bitset/includes.pass.cpp
===================================================================
--- test/std/utilities/template.bitset/includes.pass.cpp
+++ test/std/utilities/template.bitset/includes.pass.cpp
@@ -7,26 +7,17 @@
 //
 //===----------------------------------------------------------------------===//
 
-// test that <bitset> includes <cstddef>, <string>, <stdexcept> and <iosfwd>
+// test that <bitset> includes <string> and <iosfwd>
 
 #include <bitset>
 
 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>();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50421.159632.patch
Type: text/x-patch
Size: 973 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180808/82d06414/attachment.bin>


More information about the cfe-commits mailing list