Blame SOURCES/0021-libstdc++-disable-tests.patch

1198f7
See https://bugzilla.redhat.com/show_bug.cgi?id=2095749#c3
1198f7
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get/char/2.cc
1198f7
index 071597b4dd3..22cfdc7415b 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get/char/2.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get/char/2.cc
1198f7
@@ -99,5 +99,7 @@ void test02()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test02();
1198f7
+#endif
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get/char/3.cc
1198f7
index ec0f943dd73..6c7c0c60ed0 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get/char/3.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get/char/3.cc
1198f7
@@ -351,6 +351,8 @@ test01()
1198f7
 int
1198f7
 main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get/char/4.cc b/libstdc++-v3/testsuite/22_locale/time_get/get/char/4.cc
1198f7
index d0619f9de1f..499871bf5b4 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get/char/4.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get/char/4.cc
1198f7
@@ -238,6 +238,8 @@ test01()
1198f7
 int
1198f7
 main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get/char/71367.cc b/libstdc++-v3/testsuite/22_locale/time_get/get/char/71367.cc
1198f7
index 9171b7d5a17..9c6d1794991 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get/char/71367.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get/char/71367.cc
1198f7
@@ -62,6 +62,8 @@ test01()
1198f7
 int
1198f7
 main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get/char/71557.cc b/libstdc++-v3/testsuite/22_locale/time_get/get/char/71557.cc
1198f7
index 9d004b05e87..9eeff07aaf3 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get/char/71557.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get/char/71557.cc
1198f7
@@ -91,6 +91,8 @@ test01()
1198f7
 int
1198f7
 main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/3.cc
1198f7
index 45d4edeca00..6e2efad56d4 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/3.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/3.cc
1198f7
@@ -351,6 +351,8 @@ test01()
1198f7
 int
1198f7
 main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/4.cc
1198f7
index 0518842692f..485c1b41d1b 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/4.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/4.cc
1198f7
@@ -238,6 +238,8 @@ test01()
1198f7
 int
1198f7
 main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/71367.cc b/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/71367.cc
1198f7
index 456472601be..180255e948e 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/71367.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/71367.cc
1198f7
@@ -62,6 +62,8 @@ test01()
1198f7
 int
1198f7
 main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/71557.cc b/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/71557.cc
1198f7
index 7c5a829fa60..38673aac17b 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/71557.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/71557.cc
1198f7
@@ -91,6 +91,8 @@ test01()
1198f7
 int
1198f7
 main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/6.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/6.cc
1198f7
index e50afa6aa73..2f326f85afe 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/6.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/6.cc
1198f7
@@ -74,6 +74,8 @@ void test01()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/6.cc
1198f7
index f6e32b7f781..54a921e243b 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/6.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/6.cc
1198f7
@@ -74,6 +74,8 @@ void test01()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ws/char/lwg415.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ws/char/lwg415.cc
1198f7
index fe6980dff29..0a033b81138 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_istream/ws/char/lwg415.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_istream/ws/char/lwg415.cc
1198f7
@@ -71,7 +71,9 @@ test03()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
   test02();
1198f7
   test03();
1198f7
+#endif
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ws/wchar_t/lwg415.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ws/wchar_t/lwg415.cc
1198f7
index fd040098b40..3adabc60221 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_istream/ws/wchar_t/lwg415.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_istream/ws/wchar_t/lwg415.cc
1198f7
@@ -71,7 +71,9 @@ test03()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
   test02();
1198f7
   test03();
1198f7
+#endif
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc
1198f7
index e39f5928a1f..22421b158cb 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc
1198f7
@@ -15,6 +15,7 @@
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
 #if __cpp_lib_ios_noreplace
1198f7
   std::ios::openmode noreplace = std::ios::noreplace;
1198f7
 #else
1198f7
@@ -26,4 +27,5 @@ int main()
1198f7
   of.close();
1198f7
   of.open("noreplace", noreplace);
1198f7
   VERIFY( ! of.is_open() );
1198f7
+#endif
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc
1198f7
index 77f11865ac4..07748578417 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc
1198f7
@@ -15,6 +15,7 @@
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
 #if __cpp_lib_ios_noreplace
1198f7
   std::wios::openmode noreplace = std::wios::noreplace;
1198f7
 #else
1198f7
@@ -26,4 +27,5 @@ int main()
1198f7
   of.close();
1198f7
   of.open("noreplace", noreplace);
1198f7
   VERIFY( ! of.is_open() );
1198f7
+#endif
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/n3168.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/n3168.cc
1198f7
index 12da0b1f011..689ee0ee85b 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/n3168.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/n3168.cc
1198f7
@@ -98,6 +98,8 @@ test02()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
   test02();
1198f7
+#endif
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/n3168.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/n3168.cc
1198f7
index 652f46f615c..abe55ca1285 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/n3168.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/n3168.cc
1198f7
@@ -96,6 +96,8 @@ test02()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
   test02();
1198f7
+#endif
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/n3168.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/n3168.cc
1198f7
index 8c2fe85db36..92fb45495c1 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/n3168.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/n3168.cc
1198f7
@@ -59,6 +59,8 @@ test02()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
   test02();
1198f7
+#endif
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/wchar_t/n3168.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/wchar_t/n3168.cc
1198f7
index 887a9a773d1..efb0c2e878a 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/wchar_t/n3168.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/wchar_t/n3168.cc
1198f7
@@ -59,6 +59,8 @@ test02()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
   test02();
1198f7
+#endif
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
1198f7
index 39ff1761c55..9583c630fa8 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
1198f7
@@ -91,6 +91,8 @@ static bool ampm_time_format()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test02();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc
1198f7
index 228d61f1e41..a1c3265155f 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc
1198f7
@@ -91,6 +91,8 @@ static bool ampm_time_format()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test02();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/2.cc
1198f7
index adbf7e7e733..4d6b4e2ec96 100644
1198f7
--- a/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/2.cc
1198f7
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/2.cc
1198f7
@@ -99,5 +99,7 @@ void test02()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test02();
1198f7
+#endif
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/flush/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/flush/char/2.cc
1198f7
index de7a371c1c4..d5fc73d1a36 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/flush/char/2.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/flush/char/2.cc
1198f7
@@ -59,7 +59,9 @@ void test02()
1198f7
 
1198f7
   VERIFY( os.good() );
1198f7
   VERIFY( buf.sync_called() );
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   VERIFY( buf_tie.sync_called() );
1198f7
+#endif
1198f7
 }
1198f7
 
1198f7
 void
1198f7
@@ -80,7 +82,9 @@ test03()
1198f7
 
1198f7
   VERIFY( os.rdstate() & std::ios_base::eofbit );
1198f7
   VERIFY( !buf.sync_called() );
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   VERIFY( !buf_tie.sync_called() );
1198f7
+#endif
1198f7
 }
1198f7
 
1198f7
 int main()
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/flush/wchar_t/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/flush/wchar_t/2.cc
1198f7
index b330be46afa..40b9dfdb61b 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/flush/wchar_t/2.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/flush/wchar_t/2.cc
1198f7
@@ -57,7 +57,9 @@ void test02()
1198f7
 
1198f7
   VERIFY( os.good() );
1198f7
   VERIFY( buf.sync_called() );
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   VERIFY( buf_tie.sync_called() );
1198f7
+#endif
1198f7
 }
1198f7
 
1198f7
 void
1198f7
@@ -78,7 +80,9 @@ test03()
1198f7
 
1198f7
   VERIFY( os.rdstate() & std::ios_base::eofbit );
1198f7
   VERIFY( !buf.sync_called() );
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   VERIFY( !buf_tie.sync_called() );
1198f7
+#endif
1198f7
 }
1198f7
 
1198f7
 int main()
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc
1198f7
index 138648f5264..70f651818ba 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc
1198f7
@@ -73,7 +73,9 @@ void test02()
1198f7
 // libstdc++/9546
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
   test02();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/exceptions_badbit_throw.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/exceptions_badbit_throw.cc
1198f7
index 731df74de9f..b6d31711910 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/exceptions_badbit_throw.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/exceptions_badbit_throw.cc
1198f7
@@ -73,7 +73,9 @@ void test02()
1198f7
 // libstdc++/9546
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
   test02();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc
1198f7
index 2eccfdceb94..98d57ff4259 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc
1198f7
@@ -47,6 +47,8 @@ void test01()
1198f7
 // libstdc++/9546
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/wchar_t/exceptions_badbit_throw.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/wchar_t/exceptions_badbit_throw.cc
1198f7
index 92161b22632..9d75c2c69fb 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/wchar_t/exceptions_badbit_throw.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/wchar_t/exceptions_badbit_throw.cc
1198f7
@@ -47,6 +47,8 @@ void test01()
1198f7
 // libstdc++/9546
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
   return 0;
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/manipulators/extended/get_time/char/2.cc b/libstdc++-v3/testsuite/27_io/manipulators/extended/get_time/char/2.cc
1198f7
index d4cd0dc3040..a60acf00b04 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/manipulators/extended/get_time/char/2.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/manipulators/extended/get_time/char/2.cc
1198f7
@@ -44,5 +44,7 @@ void test01()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
 }
1198f7
diff --git a/libstdc++-v3/testsuite/27_io/manipulators/extended/get_time/wchar_t/2.cc b/libstdc++-v3/testsuite/27_io/manipulators/extended/get_time/wchar_t/2.cc
1198f7
index c639ce54906..5c749922016 100644
1198f7
--- a/libstdc++-v3/testsuite/27_io/manipulators/extended/get_time/wchar_t/2.cc
1198f7
+++ b/libstdc++-v3/testsuite/27_io/manipulators/extended/get_time/wchar_t/2.cc
1198f7
@@ -45,5 +45,7 @@ void test01()
1198f7
 
1198f7
 int main()
1198f7
 {
1198f7
+#if __LIBSTDCXX_SO_VERSION >= 8
1198f7
   test01();
1198f7
+#endif
1198f7
 }