Skip to content

Commit 70da0d3

Browse files
committed
Tests: updated iosfwd.pass.cpp
1 parent 944158d commit 70da0d3

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

libcxx/test/std/input.output/iostream.forward/iosfwd.pass.cpp

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,29 @@ int main(int, char**)
8383
#endif
8484
test<std::basic_stringstream<unsigned short>*>();
8585

86+
#if TEST_STD_VER >= 23
87+
test<std::basic_spanbuf<unsigned short>*>();
88+
test<std::basic_spanbuf<char>*>();
89+
# ifndef TEST_HAS_NO_WIDE_CHARACTERS
90+
test<std::basic_spanbuf<wchar_t>*>();
91+
# endif
92+
test<std::basic_ispanstream<unsigned short>*>();
93+
test<std::basic_ispanstream<char>*>();
94+
# ifndef TEST_HAS_NO_WIDE_CHARACTERS
95+
test<std::basic_ispanstream<wchar_t>*>();
96+
# endif
97+
test<std::basic_ospanstream<unsigned short>*>();
98+
test<std::basic_ospanstream<char>*>();
99+
# ifndef TEST_HAS_NO_WIDE_CHARACTERS
100+
test<std::basic_ospanstream<wchar_t>*>();
101+
# endif
102+
test<std::basic_spanstream<char>*>();
103+
test<std::basic_spanstream<unsigned short>*>();
104+
# ifndef TEST_HAS_NO_WIDE_CHARACTERS
105+
test<std::basic_spanstream<wchar_t>*>();
106+
# endif
107+
#endif // TEST_STD_VER >= 23
108+
86109
test<std::basic_filebuf<char>* >();
87110
#ifndef TEST_HAS_NO_WIDE_CHARACTERS
88111
test<std::basic_filebuf<wchar_t>* >();
@@ -134,6 +157,13 @@ int main(int, char**)
134157
test<std::ostringstream*>();
135158
test<std::stringstream* >();
136159

160+
#if TEST_STD_VER >= 23
161+
test<std::spanbuf*>();
162+
test<std::ispanstream*>();
163+
test<std::ospanstream*>();
164+
test<std::spanstream*>();
165+
#endif // TEST_STD_VER >= 23
166+
137167
test<std::filebuf* >();
138168
test<std::ifstream*>();
139169
test<std::ofstream*>();
@@ -150,6 +180,13 @@ int main(int, char**)
150180
test<std::wostringstream*>();
151181
test<std::wstringstream* >();
152182

183+
# if TEST_STD_VER >= 23
184+
test<std::wspanbuf*>();
185+
test<std::wispanstream*>();
186+
test<std::wospanstream*>();
187+
test<std::wspanstream*>();
188+
# endif // TEST_STD_VER >= 23
189+
153190
test<std::wfilebuf* >();
154191
test<std::wifstream*>();
155192
test<std::wofstream*>();

0 commit comments

Comments
 (0)