diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-11-13 22:33:58 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-11-13 22:33:58 -0500 |
| commit | 6356724057ffc94fec03c697ae99bed32d33d2f7 (patch) | |
| tree | a8aa0b8c108fce3bdfeffd5f5322d661798c74bc /test | |
| parent | 57cd074959cd529f0648264e877f9819f0209ddf (diff) | |
| parent | 03732860bee5c123f24781928e7aa01fce05d5ea (diff) | |
| download | zig-6356724057ffc94fec03c697ae99bed32d33d2f7.tar.gz zig-6356724057ffc94fec03c697ae99bed32d33d2f7.zip | |
Merge branch 'dimenus-parsec'
Diffstat (limited to 'test')
| -rw-r--r-- | test/parsec.zig | 11 |
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; + ); } |
