[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 16:45:52 PDT 2018
BillyONeal created this revision.
BillyONeal added reviewers: mclow.lists, EricWF.
[template.bitset] says only that <string> and <iosfwd> are included by <bitset>, but libcxx tests are asserting that <cstddef> and <stdexcept> are also included.
Note that libcxx's nonstandard assertion of this is already handled by test/libcxx/utilities/template.bitset/includes.pass.cpp
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
@@ -1,32 +1,24 @@
+
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
-// 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.159625.patch
Type: text/x-patch
Size: 1250 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180807/fe531ebd/attachment.bin>
More information about the cfe-commits
mailing list