diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:47:31 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:47:31 +0000 |
commit | 7582e3938bb9fb3e4664efdfb2313df29f27b70b (patch) | |
tree | 65bec6df3984fb0b437488fd86eb1359e9c84af4 /test/std/utilities/template.bitset/includes.pass.cpp | |
parent | 733153a0fb52facba02c550ec849f0c734dfa412 (diff) |
Notes
Diffstat (limited to 'test/std/utilities/template.bitset/includes.pass.cpp')
-rw-r--r-- | test/std/utilities/template.bitset/includes.pass.cpp | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/test/std/utilities/template.bitset/includes.pass.cpp b/test/std/utilities/template.bitset/includes.pass.cpp index 2e3c2812e441..e640a1b5b7ed 100644 --- a/test/std/utilities/template.bitset/includes.pass.cpp +++ b/test/std/utilities/template.bitset/includes.pass.cpp @@ -11,22 +11,27 @@ #include <bitset> -#ifndef _LIBCPP_CSTDDEF -#error <cstddef> has not been included -#endif - -#ifndef _LIBCPP_STRING -#error <string> has not been included -#endif - -#ifndef _LIBCPP_STDEXCEPT -#error <stdexcept> has not been included -#endif - -#ifndef _LIBCPP_IOSFWD -#error <iosfwd> has not been included -#endif +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>(); + test_typedef<std::istream>(); + test_typedef<std::ostream>(); + test_typedef<std::iostream>(); + } } |