| ... | @@ -644,14 +644,6 @@ pub fn addCases(cases: *tests.TranslateCContext) void { | ... | @@ -644,14 +644,6 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 644 | \\pub export fn my_fn() linksection("NEAR,.data") void {} | 644 | \\pub export fn my_fn() linksection("NEAR,.data") void {} |
| 645 | }); | 645 | }); |
| 646 | | 646 | |
| 647 | cases.add("simple function prototypes", | | |
| 648 | \\void __attribute__((noreturn)) foo(void); | | |
| 649 | \\int bar(void); | | |
| 650 | , &[_][]const u8{ | | |
| 651 | \\pub extern fn foo() noreturn; | | |
| 652 | \\pub extern fn bar() c_int; | | |
| 653 | }); | | |
| 654 | | | |
| 655 | cases.add("simple var decls", | 647 | cases.add("simple var decls", |
| 656 | \\void foo(void) { | 648 | \\void foo(void) { |
| 657 | \\ int a; | 649 | \\ int a; |