diff options
Diffstat (limited to 'ld/testsuite/ld-elf/dynbss1.c')
-rw-r--r-- | ld/testsuite/ld-elf/dynbss1.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/dynbss1.c b/ld/testsuite/ld-elf/dynbss1.c new file mode 100644 index 0000000..eb5f067 --- /dev/null +++ b/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) ; +} |