authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-11-13 22:33:41-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-11-13 22:33:41-05:00
log03732860bee5c123f24781928e7aa01fce05d5ea
treea8aa0b8c108fce3bdfeffd5f5322d661798c74bc
parentdf07361642e8c7596b27a1291f99fd2deae48a9a

add test case for previous commit


1 files changed, 11 insertions(+), 0 deletions(-)

test/parsec.zig+11
......@@ -619,6 +619,17 @@ pub fn addCases(cases: &tests.ParseCContext) {
619619 \\ };
620620 \\}
621621 );
622
623 cases.addC("duplicate typedef",
624 \\typedef long foo;
625 \\typedef int bar;
626 \\typedef long foo;
627 \\typedef int baz;
628 ,
629 \\pub const foo = c_long;
630 \\pub const bar = c_int;
631 \\pub const baz = c_int;
632 );
622633}
623634
624635