aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-11-13 22:33:58 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-11-13 22:33:58 -0500
commit6356724057ffc94fec03c697ae99bed32d33d2f7 (patch)
treea8aa0b8c108fce3bdfeffd5f5322d661798c74bc /test
parent57cd074959cd529f0648264e877f9819f0209ddf (diff)
parent03732860bee5c123f24781928e7aa01fce05d5ea (diff)
downloadzig-6356724057ffc94fec03c697ae99bed32d33d2f7.tar.gz
zig-6356724057ffc94fec03c697ae99bed32d33d2f7.zip
Merge branch 'dimenus-parsec'
Diffstat (limited to 'test')
-rw-r--r--test/parsec.zig11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/parsec.zig b/test/parsec.zig
index c8e16755df..9b3e8164fc 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;
+ );
}