stage2: implement noinline fn

This commit is contained in:
Meghan
2022-07-24 01:56:33 -07:00
committed by GitHub
parent 903bed931d
commit dea437edfb
7 changed files with 47 additions and 7 deletions

View 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'