From b8a1cb299eccce24410454d36ebc755dfd0293cd Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 12 Feb 2016 15:51:12 -0700 Subject: avoid codegening functions never called from conditional compilation --- test/run_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/run_tests.cpp') diff --git a/test/run_tests.cpp b/test/run_tests.cpp index e7d696a34c..6f73d99648 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1584,8 +1584,8 @@ fn f(Foo: i32) { ".tmp_source.zig:6:5: error: variable shadows type 'Bar'"); add_compile_fail_case("multiple else prongs in a switch", R"SOURCE( -fn f() { - const value: bool = switch (u32(111)) { +fn f(x: u32) { + const value: bool = switch (x) { 1234 => false, else => true, else => true, -- cgit v1.2.3