aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-12-01 18:24:37 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-12-02 00:46:27 -0500
commit665eba93c1733f83614c443c19cd9a5f1be910df (patch)
tree79d9456c5841e54705591f1d37b66727fe4ee2d5 /test
parente6e459e9e36fcd84edca548d8c722fc1f81c07a4 (diff)
downloadzig-665eba93c1733f83614c443c19cd9a5f1be910df.tar.gz
zig-665eba93c1733f83614c443c19cd9a5f1be910df.zip
CBE: eliminate zig_void
C void is perfectly fine.
Diffstat (limited to 'test')
-rw-r--r--test/stage2/cbe.zig22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/stage2/cbe.zig b/test/stage2/cbe.zig
index c29dafb248..441b8b23d3 100644
--- a/test/stage2/cbe.zig
+++ b/test/stage2/cbe.zig
@@ -951,7 +951,7 @@ pub fn addCases(ctx: *TestContext) !void {
ctx.h("simple header", linux_x64,
\\export fn start() void{}
,
- \\zig_extern zig_void start(zig_void);
+ \\zig_extern void start(void);
\\
);
ctx.h("header with single param function", linux_x64,
@@ -959,7 +959,7 @@ pub fn addCases(ctx: *TestContext) !void {
\\ _ = a;
\\}
,
- \\zig_extern zig_void start(zig_u8 const a0);
+ \\zig_extern void start(zig_u8 const a0);
\\
);
ctx.h("header with multiple param function", linux_x64,
@@ -967,25 +967,25 @@ pub fn addCases(ctx: *TestContext) !void {
\\ _ = a; _ = b; _ = c;
\\}
,
- \\zig_extern zig_void start(zig_u8 const a0, zig_u8 const a1, zig_u8 const a2);
+ \\zig_extern void start(zig_u8 const a0, zig_u8 const a1, zig_u8 const a2);
\\
);
ctx.h("header with u32 param function", linux_x64,
\\export fn start(a: u32) void{ _ = a; }
,
- \\zig_extern zig_void start(zig_u32 const a0);
+ \\zig_extern void start(zig_u32 const a0);
\\
);
ctx.h("header with usize param function", linux_x64,
\\export fn start(a: usize) void{ _ = a; }
,
- \\zig_extern zig_void start(zig_usize const a0);
+ \\zig_extern void start(zig_usize const a0);
\\
);
ctx.h("header with bool param function", linux_x64,
\\export fn start(a: bool) void{_ = a;}
,
- \\zig_extern zig_void start(zig_bool const a0);
+ \\zig_extern void start(zig_bool const a0);
\\
);
ctx.h("header with noreturn function", linux_x64,
@@ -993,7 +993,7 @@ pub fn addCases(ctx: *TestContext) !void {
\\ unreachable;
\\}
,
- \\zig_extern zig_noreturn start(zig_void);
+ \\zig_extern zig_noreturn start(void);
\\
);
ctx.h("header with multiple functions", linux_x64,
@@ -1001,15 +1001,15 @@ pub fn addCases(ctx: *TestContext) !void {
\\export fn b() void{}
\\export fn c() void{}
,
- \\zig_extern zig_void a(zig_void);
- \\zig_extern zig_void b(zig_void);
- \\zig_extern zig_void c(zig_void);
+ \\zig_extern void a(void);
+ \\zig_extern void b(void);
+ \\zig_extern void c(void);
\\
);
ctx.h("header with multiple includes", linux_x64,
\\export fn start(a: u32, b: usize) void{ _ = a; _ = b; }
,
- \\zig_extern zig_void start(zig_u32 const a0, zig_usize const a1);
+ \\zig_extern void start(zig_u32 const a0, zig_usize const a1);
\\
);
}