Skip to content

Commit

Permalink
aro_translate_c: move simple function prototype test to manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Jul 31, 2024
1 parent 6a103d8 commit 93a502c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions test/cases/translate_c/simple function prototypes.c
Original file line number Diff line number Diff line change
@@ -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;
8 changes: 0 additions & 8 deletions test/translate_c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 93a502c

Please sign in to comment.