https://gcc.gnu.org/g:0663595b2321eadaca103e30f0f847a12cf112c7

commit 0663595b2321eadaca103e30f0f847a12cf112c7
Author: Waffl3x <[email protected]>
Date:   Tue May 5 09:01:54 2026 -0600

    libgomp.c: Change _Alignof to alignof for C++ in test
    
    One static_assert incorrectly used '_Alignof' instead of 'alignof', this was
    most likely a typo as 'alignof' was used appropriately elsewhere. This patch
    changes it to 'alignof' for C++.
    
    This was likely missed because this case is not enabled for C++ yet. It will
    be moved to libgomp.c-c++-common in a later patch.
    
    libgomp/ChangeLog:
    
            * testsuite/libgomp.c/allocate-7.c: _Alignof to alignof.
    
    Signed-off-by: Waffl3x <[email protected]>

Diff:
---
 libgomp/testsuite/libgomp.c/allocate-7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgomp/testsuite/libgomp.c/allocate-7.c 
b/libgomp/testsuite/libgomp.c/allocate-7.c
index e11b8eb32c08..1fa92d889d0a 100644
--- a/libgomp/testsuite/libgomp.c/allocate-7.c
+++ b/libgomp/testsuite/libgomp.c/allocate-7.c
@@ -10,7 +10,7 @@ int AAA 
[[omp::decl(allocate,allocator(omp_low_lat_mem_alloc),align(4096))]];
 #ifndef __cplusplus
   _Static_assert (_Alignof(AAA) == _Alignof(int), "wrong alignment");
 #elif __cplusplus >= 201103L
-  static_assert (alignof(AAA) == _Alignof(int), "wrong alignment");
+  static_assert (alignof(AAA) == alignof(int), "wrong alignment");
 #endif

Reply via email to