aboutsummaryrefslogtreecommitdiff
path: root/test/Import/switch-stmt/Inputs/F.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Import/switch-stmt/Inputs/F.cpp')
-rw-r--r--test/Import/switch-stmt/Inputs/F.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/Import/switch-stmt/Inputs/F.cpp b/test/Import/switch-stmt/Inputs/F.cpp
new file mode 100644
index 000000000000..5d0d8376d462
--- /dev/null
+++ b/test/Import/switch-stmt/Inputs/F.cpp
@@ -0,0 +1,23 @@
+void f() {
+ switch (1) {
+ case 1:
+ case 2:
+ break;
+ case 3 ... 4:
+ case 5 ... 5:
+ break;
+ }
+ switch (int varname; 1) {
+ case 1:
+ break;
+ case 2:
+ break;
+ case 3 ... 5:
+ break;
+ }
+ switch (1)
+ default:
+ break;
+ switch (0)
+ ;
+}