summaryrefslogtreecommitdiff
path: root/libphobos/testsuite/libphobos.betterc/test20613.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/testsuite/libphobos.betterc/test20613.d')
-rw-r--r--libphobos/testsuite/libphobos.betterc/test20613.d18
1 files changed, 18 insertions, 0 deletions
diff --git a/libphobos/testsuite/libphobos.betterc/test20613.d b/libphobos/testsuite/libphobos.betterc/test20613.d
new file mode 100644
index 00000000000..b03e2d17b62
--- /dev/null
+++ b/libphobos/testsuite/libphobos.betterc/test20613.d
@@ -0,0 +1,18 @@
+/*******************************************/
+// https://issues.dlang.org/show_bug.cgi?id=20613
+
+extern(C) int main() @nogc nothrow pure
+{
+ auto s = "F";
+ final switch(s)
+ {
+ case "A": break;
+ case "B": break;
+ case "C": break;
+ case "D": break;
+ case "E": break;
+ case "F": break;
+ case "G": break;
+ }
+ return 0;
+}