/* This testcase is part of GDB, the GNU debugger.
- Copyright 2019 Free Software Foundation, Inc.
+ Copyright 2019-2020 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
struct
{
union {
- int three : 3;
+ unsigned three : 3;
int four : 4;
};
union {
int five : 3;
- int six : 4;
+ unsigned six : 4;
};
} data;
-} s1 = { .one = 1, .two = 2, .data = { .three = 3, .five = 5 } };
+} s1 = { .one = 1, .two = 2,
+ /* Use all-ones bit patterns for endianness independence. */
+ .data = { .four = -1, .six = 15 } };
struct s2_t
{