OSDN Git Service

PR testsuite/41288
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / c-c++-common / dfp / modes.c
1 /* { dg-do compile } */
2
3 typedef float decimal32  __attribute__ ((mode (SD)));
4 typedef float decimal64  __attribute__ ((mode (DD)));
5 typedef float decimal128 __attribute__ ((mode (TD)));
6
7 int ssize[sizeof (decimal32) == 4 ? 1 : -1];
8 int dsize[sizeof (decimal64) == 8 ? 1 : -1];
9 int tsize[sizeof (decimal128) == 16 ? 1 : -1];
10
11 int salign = __alignof (decimal32);
12 int dalign = __alignof (decimal64);
13 int talign = __alignof (decimal128);
14