diff options
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-elf/dynbss1.c')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-elf/dynbss1.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-elf/dynbss1.c b/binutils-2.21/ld/testsuite/ld-elf/dynbss1.c new file mode 100644 index 0000000..eb5f067 --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-elf/dynbss1.c @@ -0,0 +1,20 @@ +#include <stdio.h> +#include <stdlib.h> +#include "data1.h" + +int +main (void) +{ + if ((((long) (&a1)) & (ALIGNMENT1 - 1))) + abort (); + if ((((long) (&a2)) & (ALIGNMENT2 - 1))) + abort (); + if ((((long) (&a2)) & (ALIGNMENT3 - 1))) + abort (); + if ((((long) (&a3)) & (ALIGNMENT4 - 1))) + abort (); + + printf ("PASS\n"); + + return(0) ; +} |