summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2015-07-10 01:59:56 +0800
committerXuefer <xuefer@gmail.com>2015-07-10 02:22:19 +0800
commit8207e0771c2c4675643bef758f64c1209a0a06c2 (patch)
treeaf0f612b028ac6adee7bc7aaf82d60dc711241b2 /devel
parent4550ff7f06324f674bd6a6cb9014721ba0ec0637 (diff)
downloadxcache-8207e0771c2c4675643bef758f64c1209a0a06c2.tar.gz
xcache-8207e0771c2c4675643bef758f64c1209a0a06c2.zip
Decompiler: fix switch with expression as case value
Diffstat (limited to 'devel')
-rw-r--r--devel/sample.cpp.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/devel/sample.cpp.php b/devel/sample.cpp.php
index 1c9b9fa..d9ee27e 100644
--- a/devel/sample.cpp.php
+++ b/devel/sample.cpp.php
@@ -605,6 +605,18 @@ function codeSwitch()
break;
}
+ switch (functionCall()) {
+ case func1():
+ echo 'case1';
+ break;
+
+ case func2():
+ case func3():
+ case 1 + 1:
+ echo 'case2';
+ break;
+ }
+
switch ('emptySwitch()') {
}