aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/dynbss1.c
blob: eb5f0673998eb01910bed5b2325ec7e063c00afc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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) ;
}