1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_arm_ok } */
3 /* { dg-options "-marm -mno-unaligned-access -O3" } */
4
5 typedef int __attribute__((aligned(1))) s;
6
7 void x(char*, s*);
8 void f(char a, s f)
9 {
10 x(&a, &f);
11 }
12
13 /* { dg-final { scan-assembler-times "str\t\[^\\n\]*\\\[sp\\\]" 1 } } */
14 /* { dg-final { scan-assembler-times "str\t\[^\\n\]*\\\[sp, #3\\\]" 0 } } */