Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/attr-aligned-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
15 __builtin_abort (); | 15 __builtin_abort (); |
16 return 0; | 16 return 0; |
17 } | 17 } |
18 | 18 |
19 #if defined(__cplusplus) && __cplusplus >= 201103L | 19 #if defined(__cplusplus) && __cplusplus >= 201103L |
20 static_assert (alignof (S) == 2 * alignof (double), "alignment of S"); | 20 static_assert (alignof (S) == 2 * __alignof__ (double), "alignment of S"); |
21 static_assert (alignof (T) == 2 * alignof (double), "alignment of T"); | 21 static_assert (alignof (T) == 2 * __alignof__ (double), "alignment of T"); |
22 static_assert (alignof (const S) == 2 * alignof (double), "alignment of const S"); | 22 static_assert (alignof (const S) == 2 * __alignof__ (double), "alignment of const S"); |
23 static_assert (alignof (const T) == 2 * alignof (double), "alignment of const T"); | 23 static_assert (alignof (const T) == 2 * __alignof__ (double), "alignment of const T"); |
24 #endif | 24 #endif |