diff options
| author | 2022-09-01 07:44:52 +0200 | |
|---|---|---|
| committer | 2022-09-01 07:44:52 +0200 | |
| commit | d3398afe7283f572203a5986f9db72aa795a2714 (patch) | |
| tree | a2daf413dca370e103fd369e636e6e85952a40f0 /test | |
| parent | 8e85f9adcf63aefc0c8d1b825ad2d4a35584551d (diff) | |
static bitfield initializers
Diffstat (limited to 'test')
| -rw-r--r-- | test/2.cff | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -17,4 +17,8 @@ extern fn main() int { foo.num *= 10; printf("0x%X: %d, %d, %d\n", foo.#raw, foo.tag, foo.flag, foo.num += 532); let long = "abcd" "defg"; + + static const foop Foo = {7,#t,3, .tag: 9}; + printf("0x%X: %d, %d, %d\n", foop.#raw, foop.tag, foop.flag, foop.num); + } |