1 /* { dg-do compile } */
2 /* { dg-options "-Wcast-align=strict" } */
4 typedef char __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
))) c
;
5 typedef struct __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)))
13 struct s
{ long long x
; } *p
;
14 struct t
{ double x
; } *q
;
19 y
= (c
*) x
; /* { dg-warning "alignment" } */
20 z
= (d
*) x
; /* { dg-warning "alignment" } */
21 (long long *) p
; /* { dg-bogus "alignment" } */
22 (double *) q
; /* { dg-bogus "alignment" } */