aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/27_io/ostream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/ostream.cc')
-rw-r--r--libstdc++-v3/testsuite/27_io/ostream.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/27_io/ostream.cc b/libstdc++-v3/testsuite/27_io/ostream.cc
index cbc4a6739c2..ee764f9d697 100644
--- a/libstdc++-v3/testsuite/27_io/ostream.cc
+++ b/libstdc++-v3/testsuite/27_io/ostream.cc
@@ -31,17 +31,32 @@
// NB: This file is for testing ostream with NO OTHER INCLUDES.
#include <ostream>
+#include <testsuite_hooks.h>
// { dg-do compile }
+// libstdc++/7216
+void test01()
+{
+ // Check for required typedefs
+ typedef std::ostream test_type;
+ typedef test_type::char_type char_type;
+ typedef test_type::traits_type traits_type;
+ typedef test_type::int_type int_type;
+ typedef test_type::pos_type pos_type;
+ typedef test_type::off_type off_type;
+}
+
namespace test
{
using namespace std;
typedef short type_t;
template class basic_ostream<type_t, char_traits<type_t> >;
+ template class basic_ostream<gnu_char, char_traits<gnu_char> >;
} // test
int main()
{
+ test01();
return 0;
}