aboutsummaryrefslogtreecommitdiff
path: root/test/3.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-09-01 11:26:02 +0200
committerlemon <lsof@mailbox.org>2022-09-01 11:26:02 +0200
commit55abd40aa95d36167950823bf77f4bf24c403102 (patch)
treebc35737d607d14e402c2f97e3ec716bd94abc4c7 /test/3.cff
parentc8a3e8a84abac37252707646a16e554173496c2b (diff)
disallow duplicate fields
Diffstat (limited to 'test/3.cff')
-rw-r--r--test/3.cff2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/3.cff b/test/3.cff
index 7d73db6..cafed6a 100644
--- a/test/3.cff
+++ b/test/3.cff
@@ -6,6 +6,7 @@ bitfield ColorMaskFlags : u32 {
blue 1 bool,
alpha 1 bool,
id (8,3),
+ // red 1,
};
struct Foo {
@@ -13,6 +14,7 @@ struct Foo {
y f32,
z union { p *void, i int },
h enum union { fa, ga *void },
+ // x *void,
}
static foo Foo = { .z: { .i: 42 }, .h: :ga(&stderr) };