| ... | @@ -619,6 +619,17 @@ pub fn addCases(cases: &tests.ParseCContext) { | ... | @@ -619,6 +619,17 @@ pub fn addCases(cases: &tests.ParseCContext) { |
| 619 | \\ }; | 619 | \\ }; |
| 620 | \\} | 620 | \\} |
| 621 | ); | 621 | ); |
| | 622 | |
| | 623 | cases.addC("duplicate typedef", |
| | 624 | \\typedef long foo; |
| | 625 | \\typedef int bar; |
| | 626 | \\typedef long foo; |
| | 627 | \\typedef int baz; |
| | 628 | , |
| | 629 | \\pub const foo = c_long; |
| | 630 | \\pub const bar = c_int; |
| | 631 | \\pub const baz = c_int; |
| | 632 | ); |
| 622 | } | 633 | } |
| 623 | | 634 | |
| 624 | | 635 | |