aboutsummaryrefslogtreecommitdiff
path: root/test/compare_output.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-05-17 23:21:44 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-05-17 23:21:44 -0400
commitc38b165db4a16ba6a5c6d13537177db656fc4033 (patch)
treea8639a11bea5a2fc2b9c5aebf30011f7675f37d7 /test/compare_output.zig
parent99fc2bd4ddbe36994153f6426f0001d338e90bef (diff)
downloadzig-c38b165db4a16ba6a5c6d13537177db656fc4033.tar.gz
zig-c38b165db4a16ba6a5c6d13537177db656fc4033.zip
all tests passing with postfix deref syntax
Diffstat (limited to 'test/compare_output.zig')
-rw-r--r--test/compare_output.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compare_output.zig b/test/compare_output.zig
index 9595bf8259..b01e87d4eb 100644
--- a/test/compare_output.zig
+++ b/test/compare_output.zig
@@ -287,9 +287,9 @@ pub fn addCases(cases: &tests.CompareOutputContext) void {
\\export fn compare_fn(a: ?&const c_void, b: ?&const c_void) c_int {
\\ 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) {
+ \\ if (a_int.* < b_int.*) {
\\ return -1;
- \\ } else if (*a_int > *b_int) {
+ \\ } else if (a_int.* > b_int.*) {
\\ return 1;
\\ } else {
\\ return 0;