add test case for previous commit

This commit is contained in:
Andrew Kelley 2017-11-13 22:33:41 -05:00
parent df07361642
commit 03732860be

View File

@ -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;
);
}