PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-align-9.c
blob3c9cf55756ef33be830708eab8de1fc63b9ef9a7
1 /* Test C11 alignment support. Test reducing alignment (assumes there
2 are at least some alignment constraints), case of compound literals. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c11 -pedantic-errors" } */
5 /* { dg-skip-if "no alignment constraints" { "avr-*-*" } } */
7 #include <stddef.h>
9 max_align_t *p = &(_Alignas (_Alignof (char)) max_align_t) { 1 }; /* { dg-error "reduce alignment" } */