gcc/testsuite/gcc.dg/gnu11-align-1.c
raw| 1 | /* Test C11 alignment support. Test code valid after the resolution |
| 2 | of DR#444: alignment specifiers for compound literals in _Alignof. */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-std=gnu11" } */ |
| 5 | |
| 6 | #include <stddef.h> |
| 7 | |
| 8 | size_t align = _Alignof (_Alignas (_Alignof (max_align_t)) char) { 1 }; |