(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
c11-align-8.c
       1  /* Test C11 alignment support.  Test invalid use of alignment
       2     specifiers in type names in cases not permitted by the resolution
       3     of DR#444.  */
       4  /* { dg-do compile } */
       5  /* { dg-options "-std=c11 -pedantic-errors" } */
       6  
       7  #include <stddef.h>
       8  
       9  void
      10  f (void)
      11  {
      12    _Generic (1, int: 1, _Alignas (8) long: 2); /* { dg-error "expected" } */
      13    sizeof (_Alignas (8) long); /* { dg-error "specified for type name" } */
      14    _Alignof (_Alignas (8) long); /* { dg-error "specified for type name" } */
      15    (_Alignas (8) long) 0; /* { dg-error "specified for type name" } */
      16    _Atomic (_Alignas (8) long) x; /* { dg-error "expected" } */
      17    _Alignas (_Alignas (8) long) long y; /* { dg-error "expected" } */
      18  }