mirror of
https://github.com/ziglang/zig.git
synced 2024-11-29 15:50:14 +00:00
aro_translate_c: move simple function prototype test to manifest
This commit is contained in:
parent
6a103d87f6
commit
93a502cb2f
8
test/cases/translate_c/simple function prototypes.c
Normal file
8
test/cases/translate_c/simple function prototypes.c
Normal file
@ -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;
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user