[committed] libstdc++: Remove test dependencies on _GLIBCXX_USE_C99_STDINT_TR1

Message ID 20230512134431.1289116-1-jwakely@redhat.com
State Accepted
Headers
Series [committed] libstdc++: Remove test dependencies on _GLIBCXX_USE_C99_STDINT_TR1 |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Jonathan Wakely May 12, 2023, 1:44 p.m. UTC
  Tested x86_64-linux. Pushed to trunk.

-- >8 --

These #ifdef checks should have been removed in r9-2029-g612c9c702e2c9e
when the u16string_view and u32string_view aliases were changed to be
defined unconditionally.

libstdc++-v3/ChangeLog:

	* testsuite/21_strings/basic_string_view/typedefs.cc: Remove
	dependency on _GLIBCXX_USE_C99_STDINT_TR1.
	* testsuite/experimental/string_view/typedefs.cc: Likewise.
---
 libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc | 2 --
 libstdc++-v3/testsuite/experimental/string_view/typedefs.cc     | 2 --
 2 files changed, 4 deletions(-)
  

Patch

diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc
index b139e51e107..1beb2e1c54d 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc
@@ -28,9 +28,7 @@  using check2_t = std::string_view;
 using check3_t = std::u8string_view;
 #endif
 
-#ifdef _GLIBCXX_USE_C99_STDINT_TR1
 using check4_t = std::u16string_view;
 using check5_t = std::u32string_view;
-#endif
 
 using check6_t = std::wstring_view;
diff --git a/libstdc++-v3/testsuite/experimental/string_view/typedefs.cc b/libstdc++-v3/testsuite/experimental/string_view/typedefs.cc
index 60c4e12aa4f..a09ed8f8a22 100644
--- a/libstdc++-v3/testsuite/experimental/string_view/typedefs.cc
+++ b/libstdc++-v3/testsuite/experimental/string_view/typedefs.cc
@@ -28,9 +28,7 @@  using check2_t = std::experimental::fundamentals_v1::string_view;
 using check3_t = std::experimental::fundamentals_v1::u8string_view;
 #endif
 
-#ifdef _GLIBCXX_USE_C99_STDINT_TR1
 using check4_t = std::experimental::fundamentals_v1::u16string_view;
 using check5_t = std::experimental::fundamentals_v1::u32string_view;
-#endif
 
 using check6_t = std::experimental::fundamentals_v1::wstring_view;