summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gnu11-align-1.c
blob: 50522d7bed50d1c9cde76fa8e43e39bc45d6d4ce (plain)
1
2
3
4
5
6
7
8
/* Test C11 alignment support.  Test code valid after the resolution
   of DR#444: alignment specifiers for compound literals in _Alignof.  */
/* { dg-do compile } */
/* { dg-options "-std=gnu11" } */

#include <stddef.h>

size_t align = _Alignof (_Alignas (_Alignof (max_align_t)) char) { 1 };