diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test17853.d')
-rw-r--r-- | gcc/testsuite/gdc.test/compilable/test17853.d | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test17853.d b/gcc/testsuite/gdc.test/compilable/test17853.d new file mode 100644 index 00000000000..d0e602546cf --- /dev/null +++ b/gcc/testsuite/gdc.test/compilable/test17853.d @@ -0,0 +1,11 @@ +// Switch with no braces & empty case should compile + +int main() { + int ob = 1; + + final switch (ob) + case 0: case 1: + break; + + return ob; +} |