Skip to content

Commit

Permalink
fix broken tests from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Mar 6, 2018
1 parent 07e47c0 commit 5d58200
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/compare_output.zig
Expand Up @@ -285,8 +285,8 @@ pub fn addCases(cases: &tests.CompareOutputContext) void {
\\const c = @cImport(@cInclude("stdlib.h"));
\\
\\export fn compare_fn(a: ?&const c_void, b: ?&const c_void) c_int {
\\ const a_int = @ptrCast(&align(1) i32, a ?? unreachable);
\\ const b_int = @ptrCast(&align(1) i32, b ?? unreachable);
\\ const a_int = @ptrCast(&align(1) const i32, a ?? unreachable);
\\ const b_int = @ptrCast(&align(1) const i32, b ?? unreachable);
\\ if (*a_int < *b_int) {
\\ return -1;
\\ } else if (*a_int > *b_int) {
Expand Down
2 changes: 1 addition & 1 deletion test/compile_errors.zig
Expand Up @@ -2440,7 +2440,7 @@ pub fn addCases(cases: &tests.CompileErrorContext) void {
\\const Derp = @OpaqueType();
\\extern fn bar(d: &Derp) void;
\\export fn foo() void {
\\ const x = u8(1);
\\ var x = u8(1);
\\ bar(@ptrCast(&c_void, &x));
\\}
,
Expand Down

0 comments on commit 5d58200

Please sign in to comment.