| 1 |
/* { dg-do run { target int128 } } */ |
| 2 |
/* { dg-options "" } */ |
| 3 |
|
| 4 |
struct s |
| 5 |
{ |
| 6 |
__int128 y : 66; |
| 7 |
}; |
| 8 |
typedef struct s T; |
| 9 |
T a[] = { 1, 10000, 0x12345, 0xff000001, 1ULL << 63, (__int128) 1 << 64, |
| 10 |
((__int128) 1 << 64) | 1 }; |
| 11 |
|
| 12 |
int |
| 13 |
main (void) |
| 14 |
{ |
| 15 |
if (a[0].y != 1 |
| 16 |
|| a[1].y != 10000 |
| 17 |
|| a[2].y != 0x12345 |
| 18 |
|| a[3].y != 0xff000001 |
| 19 |
|| a[4].y != (1ULL << 63) |
| 20 |
|| a[5].y != ((__int128) 1 << 64) |
| 21 |
|| a[6].y != (((__int128) 1 << 64) | 1)) |
| 22 |
__builtin_abort (); |
| 23 |
return 0; |
| 24 |
} |