stage2: implement noinline fn
This commit is contained in:
12
test/cases/compile_errors/noinline_fn_cc_inline.zig
Normal file
12
test/cases/compile_errors/noinline_fn_cc_inline.zig
Normal file
@@ -0,0 +1,12 @@
|
||||
const cc = .Inline;
|
||||
noinline fn foo() callconv(cc) void {}
|
||||
|
||||
comptime {
|
||||
_ = foo;
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :2:28: error: 'noinline' function cannot have callconv 'Inline'
|
||||
Reference in New Issue
Block a user