gcc/testsuite/g++.dg/abi/align3.C
raw| 1 | // PR c++/94050 - ABI issue with alignas on armv7hl. |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | struct alignas(8) Cell {}; |
| 5 | struct TenuredCell : public Cell {}; |
| 6 | struct BaseShape : public TenuredCell { |
| 7 | void *p; |
| 8 | unsigned q, r; |
| 9 | void *s; |
| 10 | __UINTPTR_TYPE__ t; |
| 11 | }; |
| 12 | static_assert (sizeof (BaseShape) % 8 == 0, ""); |