aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-12 15:51:12 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-12 15:51:12 -0700
commitb8a1cb299eccce24410454d36ebc755dfd0293cd (patch)
tree8969d97b750abd41b10f23f0bc05a10f1d81c728 /test/run_tests.cpp
parent9bf9be993791833f88bfbf049875dce50b64cd45 (diff)
downloadzig-b8a1cb299eccce24410454d36ebc755dfd0293cd.tar.gz
zig-b8a1cb299eccce24410454d36ebc755dfd0293cd.zip
avoid codegening functions never called from conditional compilation
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp4
1 files changed, 2 insertions, 2 deletions
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,