From 7723f52e3567021bae4566a8d7bfe6b5baf179d1 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Tue, 20 Jan 2004 20:42:24 +0000 Subject: [PATCH] 2004-01-20 Martin Baulig * test-154.cs: Added testcase for bug #46640. svn path=/trunk/mcs/; revision=22313 --- mcs/tests/ChangeLog | 4 ++++ mcs/tests/test-154.cs | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/mcs/tests/ChangeLog b/mcs/tests/ChangeLog index 0c7b04145f1..7d3520c3b0a 100755 --- a/mcs/tests/ChangeLog +++ b/mcs/tests/ChangeLog @@ -1,3 +1,7 @@ +2004-01-20 Martin Baulig + + * test-154.cs: Added testcase for bug #46640. + 2004-01-20 Martin Baulig * test-226.cs: New test for #53058. diff --git a/mcs/tests/test-154.cs b/mcs/tests/test-154.cs index 0c2a447bd5e..0a1550ca766 100644 --- a/mcs/tests/test-154.cs +++ b/mcs/tests/test-154.cs @@ -515,4 +515,19 @@ public class X end: x = y; } + + // + // Bug 46640 + // + public static void test35 (int a, bool test) + { + switch (a) { + case 3: + if (test) + break; + return; + default: + return; + } + } } -- 2.25.1