zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 03732860bee5c123f24781928e7aa01fce05d5ea (tree)
parent df07361642e8c7596b27a1291f99fd2deae48a9a
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Mon, 13 Nov 2017 22:33:41 -0500

add test case for previous commit

Diffstat:
Mtest/parsec.zig | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git 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; + ); }