aro_translate_c: move noreturn test to manifest

This commit is contained in:
Evan Haas
2024-07-30 23:30:25 -07:00
parent b3f5769930
commit 6c632d52f9
2 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
void foo(void) __attribute__((noreturn));
// translate-c
// c_frontend=aro,clang
//
// pub extern fn foo() noreturn;

View File

@@ -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;