[01/12] libgomp.c: Change _Alignof to alignof for C++ in test

Message ID 20260505151030.1749548-2-waffl3x@baylibre.com
State New
Headers
Series OpenMP/C++: 'allocate' directive |

Commit Message

Waffl3x May 5, 2026, 3:01 p.m. UTC
  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 <waffl3x@baylibre.com>
---
 libgomp/testsuite/libgomp.c/allocate-7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/libgomp/testsuite/libgomp.c/allocate-7.c b/libgomp/testsuite/libgomp.c/allocate-7.c
index e11b8eb32c0..1fa92d889d0 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