Skip to content

Commit

Permalink
aro_translate_c: move noreturn test to manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Jul 31, 2024
1 parent b3f5769 commit 6c632d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions test/cases/translate_c/noreturn attribute.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
void foo(void) __attribute__((noreturn));

// translate-c
// c_frontend=aro,clang
//
// pub extern fn foo() noreturn;
6 changes: 0 additions & 6 deletions test/translate_c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -774,12 +774,6 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\}
});

cases.add("noreturn attribute",
\\void foo(void) __attribute__((noreturn));
, &[_][]const u8{
\\pub extern fn foo() noreturn;
});

cases.add("always_inline attribute",
\\__attribute__((always_inline)) int foo() {
\\ return 5;
Expand Down

0 comments on commit 6c632d5

Please sign in to comment.