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]>
---
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 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
--
2.54.0