diff --git a/test/cases/translate_c/simple function prototypes.c b/test/cases/translate_c/simple function prototypes.c new file mode 100644 index 000000000000..ee1e2bad3220 --- /dev/null +++ b/test/cases/translate_c/simple function prototypes.c @@ -0,0 +1,8 @@ +void __attribute__((noreturn)) foo(void); +int bar(void); + +// translate-c +// c_frontend=clang,aro +// +// pub extern fn foo() noreturn; +// pub extern fn bar() c_int; diff --git a/test/translate_c.zig b/test/translate_c.zig index 772129be9bce..d2ed93643443 100644 --- a/test/translate_c.zig +++ b/test/translate_c.zig @@ -644,14 +644,6 @@ pub fn addCases(cases: *tests.TranslateCContext) void { \\pub export fn my_fn() linksection("NEAR,.data") void {} }); - cases.add("simple function prototypes", - \\void __attribute__((noreturn)) foo(void); - \\int bar(void); - , &[_][]const u8{ - \\pub extern fn foo() noreturn; - \\pub extern fn bar() c_int; - }); - cases.add("simple var decls", \\void foo(void) { \\ int a;