authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2019-12-01 14:27:28+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-12-03 12:50:42-05:00
logffd21c586dbed40b991c5578b2b2ba7d12c72a8e
treec830bae159b1d5bda8168ec36a10a10e2d0aa22b
parent621c08e692256af9b0cc5ef6438b0ecf547e2b38
signature Commit is signed but in an unrecognized format.

fix tests


1 files changed, 8 insertions(+), 8 deletions(-)

test/compile_errors.zig+8-8
......@@ -156,7 +156,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
156156 "tmp.zig:9:27: error: @atomicRmw on enum only works with .Xchg",
157157 );
158158
159 cases.add(
159 cases.addExe(
160160 "disallow coercion from non-null-terminated pointer to null-terminated pointer",
161161 \\extern fn puts(s: [*:0]const u8) c_int;
162162 \\pub fn main() void {
......@@ -876,7 +876,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
876876 "tmp.zig:3:32: note: cast discards const qualifier",
877877 );
878878
879 cases.add(
879 cases.addExe(
880880 "overflow in enum value allocation",
881881 \\const Moo = enum(u8) {
882882 \\ Last = 255,
......@@ -3000,14 +3000,14 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
30003000 "tmp.zig:3:9: error: encountered @panic at compile-time",
30013001 );
30023002
3003 cases.add(
3003 cases.addExe(
30043004 "wrong return type for main",
30053005 \\pub fn main() f32 { }
30063006 ,
30073007 "error: expected return type of main to be 'void', '!void', 'noreturn', 'u8', or '!u8'",
30083008 );
30093009
3010 cases.add(
3010 cases.addExe(
30113011 "double ?? on main return value",
30123012 \\pub fn main() ??void {
30133013 \\}
......@@ -4900,7 +4900,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
49004900 "tmp.zig:3:13: error: cannot assign to constant",
49014901 );
49024902
4903 cases.add(
4903 cases.addExe(
49044904 "main function with bogus args type",
49054905 \\pub fn main(args: [][]bogus) !void {}
49064906 ,
......@@ -5718,7 +5718,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
57185718 "tmp.zig:4:13: error: cannot continue out of defer expression",
57195719 );
57205720
5721 cases.add(
5721 cases.addExe(
57225722 "calling a var args function only known at runtime",
57235723 \\var foos = [_]fn(...) void { foo1, foo2 };
57245724 \\
......@@ -5732,7 +5732,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
57325732 "tmp.zig:7:9: error: calling a generic function requires compile-time known function value",
57335733 );
57345734
5735 cases.add(
5735 cases.addExe(
57365736 "calling a generic function only known at runtime",
57375737 \\var foos = [_]fn(var) void { foo1, foo2 };
57385738 \\
......@@ -6850,7 +6850,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
68506850 "tmp.zig:3:23: error: vector element type must be integer, float, bool, or pointer; 'comptime_int' is invalid",
68516851 );
68526852
6853 cases.add("compileLog of tagged enum doesn't crash the compiler",
6853 cases.addExe("compileLog of tagged enum doesn't crash the compiler",
68546854 \\const Bar = union(enum(u32)) {
68556855 \\ X: i32 = 1
68566856 \\};