mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
add test case for previous commit
This commit is contained in:
parent
df07361642
commit
03732860be
@ -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;
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user