diff options
Diffstat (limited to 'test/regression/bitfields7.c')
-rw-r--r-- | test/regression/bitfields7.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/regression/bitfields7.c b/test/regression/bitfields7.c new file mode 100644 index 00000000..33e20a12 --- /dev/null +++ b/test/regression/bitfields7.c @@ -0,0 +1,20 @@ +#include <stdio.h> + +struct S0 { + signed f0 : 12; + unsigned f1 : 28; +}; + +struct S5 { + struct S0 f1; + unsigned : 0; + signed f2 : 26; +}; + +struct S5 g_22 = {{0,0},1}; + +int main(int argc, char* argv[]) +{ + printf("g_22.f2 = %d\n", g_22.f2); + return 0; +} |