1 /* { dg-do compile } */ 2 /* { dg-options "-O -fdump-rtl-expand" } */ 3 4 struct S { 5 int l; 6 unsigned char c; 7 }; f(unsigned char * p10)8unsigned long f(unsigned char *p10) { 9 struct S *p = (struct S *) (p10 + 10); 10 return p->c; 11 } 12 13 /* The p->c memory access should have alignment of 4 bytes. */ 14 15 /* { dg-final { scan-rtl-dump "MEM\[^\\n\]*A32" "expand" } } */ 16