aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-09-01 07:44:52 +0200
committerlemon <lsof@mailbox.org>2022-09-01 07:44:52 +0200
commitd3398afe7283f572203a5986f9db72aa795a2714 (patch)
treea2daf413dca370e103fd369e636e6e85952a40f0 /test
parent8e85f9adcf63aefc0c8d1b825ad2d4a35584551d (diff)
static bitfield initializers
Diffstat (limited to 'test')
-rw-r--r--test/2.cff4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/2.cff b/test/2.cff
index deb300c..43fc148 100644
--- a/test/2.cff
+++ b/test/2.cff
@@ -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);
+
}