mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
update compile error tests
This commit is contained in:
parent
0d4354324c
commit
ab20b351ce
1 changed files with 1 additions and 1 deletions
|
|
@ -2184,7 +2184,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
|
|||
cases.add("don't implicit cast double pointer to *c_void",
|
||||
\\export fn entry() void {
|
||||
\\ var a: u32 = 1;
|
||||
\\ var ptr: *c_void = &a;
|
||||
\\ var ptr: *align(@alignOf(u32)) c_void = &a;
|
||||
\\ var b: *u32 = @ptrCast(*u32, ptr);
|
||||
\\ var ptr2: *c_void = &b;
|
||||
\\}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue