| author | |
| committer | |
| log | 93a502cb2f5a38d0a94ebccd1be523bc71f6a00b |
| tree | a03d5e6317e7efd646755f95d976ef819db1dbce |
| parent | 6a103d87f650ed7cac79866033e3136433259f67 |
| signature | Signed by SSH key SHA256:cf2/TFgSxv2uRX26INvFSw25Prr1Dy9H8MiRXgLpok4 |
2 files changed, 8 insertions(+), 8 deletions(-)
test/cases/translate_c/simple function prototypes.c	 created+8| ... | ... | @@ -0,0 +1,8 @@ |
| 1 | void __attribute__((noreturn)) foo(void); | |
| 2 | int bar(void); | |
| 3 | ||
| 4 | // translate-c | |
| 5 | // c_frontend=clang,aro | |
| 6 | // | |
| 7 | // pub extern fn foo() noreturn; | |
| 8 | // pub extern fn bar() c_int; |
test/translate_c.zig-8| ... | ... | @@ -644,14 +644,6 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 644 | 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 | 647 | cases.add("simple var decls", |
| 656 | 648 | \\void foo(void) { |
| 657 | 649 | \\ int a; |