diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-06-14 00:04:34 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-06-14 00:04:34 -0400 |
| commit | 6a93dda3e1c0ff5f400da25a5d14c907fc9a6fdf (patch) | |
| tree | 08260222b967ccf73f237ae97824c054c023c9b8 /test/compile_errors.zig | |
| parent | 199bbb6292896330ced71dec2e5c58a49af5907e (diff) | |
| download | zig-6a93dda3e1c0ff5f400da25a5d14c907fc9a6fdf.tar.gz zig-6a93dda3e1c0ff5f400da25a5d14c907fc9a6fdf.zip | |
progress toward windows hello world working
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index fd07dbb2b1..03e29e3450 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -409,18 +409,6 @@ pub fn addCases(cases: &tests.CompileErrorContext) { ".tmp_source.zig:2:1: error: redefinition of 'a'", ".tmp_source.zig:1:1: note: previous definition is here"); - cases.add("byvalue struct parameter in exported function", - \\const A = struct { x : i32, }; - \\export fn f(a : A) {} - , ".tmp_source.zig:2:13: error: byvalue types not yet supported on extern function parameters"); - - cases.add("byvalue struct return value in exported function", - \\const A = struct { x: i32, }; - \\export fn f() -> A { - \\ A {.x = 1234 } - \\} - , ".tmp_source.zig:2:18: error: byvalue types not yet supported on extern function return values"); - cases.add("duplicate field in struct value expression", \\const A = struct { \\ x : i32, @@ -1070,7 +1058,7 @@ pub fn addCases(cases: &tests.CompileErrorContext) { \\export fn foo(comptime x: i32, y: i32) -> i32{ \\ x + y \\} - , ".tmp_source.zig:1:15: error: comptime parameter not allowed in extern function"); + , ".tmp_source.zig:1:15: error: comptime parameter not allowed in function with calling convention 'ccc'"); cases.add("extern function with comptime parameter", \\extern fn foo(comptime x: i32, y: i32) -> i32; @@ -1078,7 +1066,7 @@ pub fn addCases(cases: &tests.CompileErrorContext) { \\ foo(1, 2) \\} \\export fn entry() -> usize { @sizeOf(@typeOf(f)) } - , ".tmp_source.zig:1:15: error: comptime parameter not allowed in extern function"); + , ".tmp_source.zig:1:15: error: comptime parameter not allowed in function with calling convention 'ccc'"); cases.add("convert fixed size array to slice with invalid size", \\export fn f() { |
