mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 22:09:49 +00:00
aro_translate_c: move noreturn test to manifest
This commit is contained in:
parent
b3f5769930
commit
6c632d52f9
6
test/cases/translate_c/noreturn attribute.c
Normal file
6
test/cases/translate_c/noreturn attribute.c
Normal file
@ -0,0 +1,6 @@
|
||||
void foo(void) __attribute__((noreturn));
|
||||
|
||||
// translate-c
|
||||
// c_frontend=aro,clang
|
||||
//
|
||||
// pub extern fn foo() noreturn;
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user