From 55abd40aa95d36167950823bf77f4bf24c403102 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 1 Sep 2022 11:26:02 +0200 Subject: disallow duplicate fields --- test/3.cff | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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) }; -- cgit v1.2.3