aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-01-08 10:54:05 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-01-08 10:54:05 -0500
commit76d0e49e612d661b57b795cd81f5ba06dc26ceca (patch)
treed4b4bc124da5cf8b3e7314a2729a0d051a51279c /test/run_tests.cpp
parente4bc8d22c2f518353d31d8c99de8d35e5ead0c67 (diff)
downloadzig-76d0e49e612d661b57b795cd81f5ba06dc26ceca.tar.gz
zig-76d0e49e612d661b57b795cd81f5ba06dc26ceca.zip
fix unable to eval const expr test case
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 6083dfd8f6..94710f37cc 100644
--- a/test/run_tests.cpp
+++ b/test/run_tests.cpp
@@ -1128,7 +1128,7 @@ const Foo = struct {
};
var global_var: usize = 1;
fn get() -> usize { global_var }
- )SOURCE", 1, ".tmp_source.zig:3:9: error: unable to evaluate constant expression");
+ )SOURCE", 1, ".tmp_source.zig:3:12: error: unable to evaluate constant expression");
add_compile_fail_case("unnecessary if statement", R"SOURCE(