| ... | ... | @@ -19,25 +19,25 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 19 | 19 | ); |
| 20 | 20 | |
| 21 | 21 | /////////////// Cases that pass for only stage2 //////////////// |
| 22 | | cases.add_2("Parameterless function prototypes", |
| 23 | | \\void a() {} |
| 24 | | \\void b(void) {} |
| 25 | | \\void c(); |
| 26 | | \\void d(void); |
| 27 | | , |
| 28 | | \\pub export fn a() void {} |
| 29 | | \\pub export fn b() void {} |
| 30 | | \\pub extern fn c(...) void; |
| 31 | | \\pub extern fn d() void; |
| 32 | | ); |
| 33 | | |
| 34 | | cases.add_2("simple function definition", |
| 35 | | \\void foo(void) {} |
| 36 | | \\static void bar(void) {} |
| 37 | | , |
| 38 | | \\pub export fn foo() void {} |
| 39 | | \\pub extern fn bar() void {} |
| 40 | | ); |
| 22 | // cases.add_2("Parameterless function prototypes", |
| 23 | // \\void a() {} |
| 24 | // \\void b(void) {} |
| 25 | // \\void c(); |
| 26 | // \\void d(void); |
| 27 | // , |
| 28 | // \\pub export fn a() void {} |
| 29 | // \\pub export fn b() void {} |
| 30 | // \\pub extern fn c(...) void; |
| 31 | // \\pub extern fn d() void; |
| 32 | // ); |
| 33 | |
| 34 | // cases.add_2("simple function definition", |
| 35 | // \\void foo(void) {} |
| 36 | // \\static void bar(void) {} |
| 37 | // , |
| 38 | // \\pub export fn foo() void {} |
| 39 | // \\pub extern fn bar() void {} |
| 40 | // ); |
| 41 | 41 | |
| 42 | 42 | /////////////// Cases for only stage1 which are TODO items for stage2 //////////////// |
| 43 | 43 | |
| ... | ... | @@ -47,7 +47,7 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 47 | 47 | \\pub const REDISMODULE_READ = 1 << 0; |
| 48 | 48 | ); |
| 49 | 49 | |
| 50 | | cases.add("casting pointers to ints and ints to pointers", |
| 50 | cases.add_both("casting pointers to ints and ints to pointers", |
| 51 | 51 | \\void foo(void); |
| 52 | 52 | \\void bar(void) { |
| 53 | 53 | \\ void *func_ptr = foo; |
| ... | ... | @@ -233,7 +233,7 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 233 | 233 | \\pub extern fn baz(a: i8, b: i16, c: i32, d: i64) void; |
| 234 | 234 | ); |
| 235 | 235 | |
| 236 | | cases.add("noreturn attribute", |
| 236 | cases.add_both("noreturn attribute", |
| 237 | 237 | \\void foo(void) __attribute__((noreturn)); |
| 238 | 238 | , |
| 239 | 239 | \\pub extern fn foo() noreturn; |