diff mbox series

[committed] libstdc++: Fix test for feature test macro

Message ID YWflgf6Vlx9qWINp@redhat.com
State Committed
Commit 6e3bfd60e87303b32bf2284ea4e79078f488bc95
Headers show
Series [committed] libstdc++: Fix test for feature test macro | expand

Commit Message

Jonathan Wakely Oct. 14, 2021, 8:08 a.m. UTC
libstdc++-v3/ChangeLog:

	* testsuite/20_util/is_layout_compatible/version.cc: Check
	correct macro.

Tested powerpc64le-linux. Committed to trunk.
commit 6e3bfd60e87303b32bf2284ea4e79078f488bc95
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Oct 14 00:33:49 2021

    libstdc++: Fix test for feature test macro
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/20_util/is_layout_compatible/version.cc: Check
            correct macro.
diff mbox series

Patch

diff --git a/libstdc++-v3/testsuite/20_util/is_layout_compatible/version.cc b/libstdc++-v3/testsuite/20_util/is_layout_compatible/version.cc
index 1a32275fdf5..3b2a8e1620f 100644
--- a/libstdc++-v3/testsuite/20_util/is_layout_compatible/version.cc
+++ b/libstdc++-v3/testsuite/20_util/is_layout_compatible/version.cc
@@ -5,6 +5,6 @@ 
 
 #ifndef __cpp_lib_is_layout_compatible
 # error "Feature test macro for is_layout_compatible is missing in <version>"
-#elif __cpp_lib_is_pointer_interconvertible < 201907L
+#elif __cpp_lib_is_layout_compatible < 201907L
 # error "Feature test macro for is_layout_compatible has wrong value in <version>"
 #endif