diff options
Diffstat (limited to 'test/test4.c')
| -rw-r--r-- | test/test4.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test4.c b/test/test4.c index 4a127d0..12d9ca4 100644 --- a/test/test4.c +++ b/test/test4.c @@ -6,6 +6,18 @@ int cmp(float x, float y) { return x < y && x > 0.f; } +struct foo { + int x : 10; + unsigned y : 7; + short k:3; +int : 0; + short a:15; +}; + +int bitf(struct foo q) { + return q.x + q.y - q.k + q.a; +} + int main() { int x = 42, *a = &x, |