| author | |
| committer | |
| log | 6c632d52f903b97d28210a6a4155eee8e6704d33 |
| tree | 9516b30634b43d21b56b70afc5954016788fe5f3 |
| parent | b3f576993087f90a249b75f8e72cb95974633eb4 |
| signature |
2 files changed, 6 insertions(+), 6 deletions(-)
test/cases/translate_c/noreturn attribute.c	 created+6| ... | ... | @@ -0,0 +1,6 @@ |
| 1 | void foo(void) __attribute__((noreturn)); | |
| 2 | ||
| 3 | // translate-c | |
| 4 | // c_frontend=aro,clang | |
| 5 | // | |
| 6 | // pub extern fn foo() noreturn; |
test/translate_c.zig-6| ... | ... | @@ -774,12 +774,6 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 774 | 774 | \\} |
| 775 | 775 | }); |
| 776 | 776 | |
| 777 | cases.add("noreturn attribute", | |
| 778 | \\void foo(void) __attribute__((noreturn)); | |
| 779 | , &[_][]const u8{ | |
| 780 | \\pub extern fn foo() noreturn; | |
| 781 | }); | |
| 782 | ||
| 783 | 777 | cases.add("always_inline attribute", |
| 784 | 778 | \\__attribute__((always_inline)) int foo() { |
| 785 | 779 | \\ return 5; |