aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/ia64/types-2.c
blob: 30e4ddbf87c44f1f52f1a27c4a4d8b1cdb40fa4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do run { target ia64*-hp-hpux* } } */
/* { dg-options } */

/* Test that the sizes and alignments of the extra floating-point
   types are correct.  */

int main () {
  if (sizeof (__fpreg) != 16)
    return 1;
  if (__alignof__ (__fpreg) != 16)
    return 2;

  if (sizeof (__float80) != 16)
    return 3;
  if (__alignof__ (__float80) != 16)
    return 4;

  return 0;
}