diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-01-29 10:57:09 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-01-29 10:57:09 -0500 |
| commit | abe6c2d5859461900e0ceeb98800987413b3355a (patch) | |
| tree | 20e6a66ab6211ca62035b9c2a9773059a16b248c /test/compile_errors.zig | |
| parent | f66ac9a5e704d9900d9e21cb482d7487a02e7b34 (diff) | |
| download | zig-abe6c2d5859461900e0ceeb98800987413b3355a.tar.gz zig-abe6c2d5859461900e0ceeb98800987413b3355a.zip | |
allow packed containers in extern functions
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index 64ee69ba18..fe167c472c 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -5,12 +5,12 @@ pub fn addCases(cases: &tests.CompileErrorContext) void { \\export fn foo() boid {} , ".tmp_source.zig:1:17: error: use of undeclared identifier 'boid'"); - cases.add("function with non-extern enum parameter", + cases.add("function with non-extern non-packed enum parameter", \\const Foo = enum { A, B, C }; \\export fn entry(foo: Foo) void { } , ".tmp_source.zig:2:22: error: parameter of type 'Foo' not allowed in function with calling convention 'ccc'"); - cases.add("function with non-extern struct parameter", + cases.add("function with non-extern non-packed struct parameter", \\const Foo = struct { \\ A: i32, \\ B: f32, @@ -19,7 +19,7 @@ pub fn addCases(cases: &tests.CompileErrorContext) void { \\export fn entry(foo: Foo) void { } , ".tmp_source.zig:6:22: error: parameter of type 'Foo' not allowed in function with calling convention 'ccc'"); - cases.add("function with non-extern union parameter", + cases.add("function with non-extern non-packed union parameter", \\const Foo = union { \\ A: i32, \\ B: f32, |
