diff --git a/test/parsec.zig b/test/parsec.zig index c8e16755df9b7a62203f7176f5f3feb2cb275d0a..9b3e8164fcd61e881ce2f1de158c2f53e0b6a502 100644 --- a/test/parsec.zig +++ b/test/parsec.zig @@ -619,6 +619,17 @@ pub fn addCases(cases: &tests.ParseCContext) { \\ }; \\} ); + + cases.addC("duplicate typedef", + \\typedef long foo; + \\typedef int bar; + \\typedef long foo; + \\typedef int baz; + , + \\pub const foo = c_long; + \\pub const bar = c_int; + \\pub const baz = c_int; + ); }