diff options
Diffstat (limited to 'test/bitfield-short.c')
-rw-r--r-- | test/bitfield-short.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/bitfield-short.c b/test/bitfield-short.c new file mode 100644 index 0000000..b0be6fd --- /dev/null +++ b/test/bitfield-short.c @@ -0,0 +1,7 @@ +struct { + short x : 7; +} s = {.x = -64}; + +int main(void) { + return s.x > 0; +} |