summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/dfp/modes.c
blob: 09d4a15c264e52ccff71c4fe126e12a3c5ceae04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */

typedef float decimal32  __attribute__ ((mode (SD)));
typedef float decimal64  __attribute__ ((mode (DD)));
typedef float decimal128 __attribute__ ((mode (TD)));

int ssize[sizeof (decimal32) == 4 ? 1 : -1];
int dsize[sizeof (decimal64) == 8 ? 1 : -1];
int tsize[sizeof (decimal128) == 16 ? 1 : -1];

int salign = __alignof (decimal32);
int dalign = __alignof (decimal64);
int talign = __alignof (decimal128);