From 3ef447fa20f54f75ad3b9be59768b4ef284cb941 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 8 Jan 2017 10:30:05 -0500 Subject: don't try to eval extern functions at compile time --- test/run_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/run_tests.cpp') diff --git a/test/run_tests.cpp b/test/run_tests.cpp index 9c1a6955ca..0381ebbabe 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1019,7 +1019,7 @@ fn f(x: u32) { add_compile_fail_case("global variable initializer must be constant expression", R"SOURCE( extern fn foo() -> i32; const x = foo(); - )SOURCE", 1, ".tmp_source.zig:3:11: error: global variable initializer requires constant expression"); + )SOURCE", 1, ".tmp_source.zig:3:11: error: unable to evaluate constant expression"); add_compile_fail_case("array concatenation with wrong type", R"SOURCE( fn f(s: []u8) -> []u8 { -- cgit v1.2.3