aboutsummaryrefslogtreecommitdiff
path: root/test/compile_errors.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/compile_errors.zig')
-rw-r--r--test/compile_errors.zig11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig
index 6930f346e2..62aa7d46f2 100644
--- a/test/compile_errors.zig
+++ b/test/compile_errors.zig
@@ -2,6 +2,17 @@ const tests = @import("tests.zig");
pub fn addCases(cases: *tests.CompileErrorContext) void {
cases.add(
+ "@noInlineCall on an inline function",
+ \\inline fn foo() void {}
+ \\
+ \\export fn entry() void {
+ \\ @noInlineCall(foo);
+ \\}
+ ,
+ ".tmp_source.zig:4:5: error: no-inline call of inline function",
+ );
+
+ cases.add(
"comptime continue inside runtime switch",
\\export fn entry() void {
\\ var p: i32 = undefined;