diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/h8300-bss-align-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/h8300-bss-align-1.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/h8300-bss-align-1.c b/gcc/testsuite/gcc.dg/h8300-bss-align-1.c new file mode 100644 index 000000000..d6459e15f --- /dev/null +++ b/gcc/testsuite/gcc.dg/h8300-bss-align-1.c @@ -0,0 +1,12 @@ +/* Make sure that the H8 backend does align zero initialized variables. */ +/* { dg-do compile { target h8300-*-* } } */ +/* { dg-options "" } */ + +struct s { + char a, b; + long c; +}; + +struct s s = {0}; + +/* { dg-final { scan-assembler ".align" } } */ |