aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-08-25 17:25:18 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-08-29 22:14:09 -0700
commit651dc31247c2f637925ed6a6e92c8bc1a19efd5c (patch)
tree7e75713d6c4c9b5dfc8783759b5ed60b5e9e71bf /test/run_tests.cpp
parent1f7ec741fa5b1d9ba3826e06a8a8a0feec58876f (diff)
downloadzig-651dc31247c2f637925ed6a6e92c8bc1a19efd5c.tar.gz
zig-651dc31247c2f637925ed6a6e92c8bc1a19efd5c.zip
implement null as a literal type
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp
index e95c0aa731..c2fdb0904a 100644
--- a/test/run_tests.cpp
+++ b/test/run_tests.cpp
@@ -1211,7 +1211,7 @@ fn derp(){}
add_compile_fail_case("assign null to non-nullable pointer", R"SOURCE(
const a: &u8 = null;
- )SOURCE", 1, ".tmp_source.zig:2:16: error: expected maybe type, got '&u8'");
+ )SOURCE", 1, ".tmp_source.zig:2:16: error: expected type '&u8', got '(null)'");
add_compile_fail_case("indexing an array of size zero", R"SOURCE(
const array = []u8{};