summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test13858.d
blob: 5a0432c59cea062fba83a3ea3d632dd042ea4e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// REQUIRED_ARGS: -w
// 13858

void foo() { assert(0); }

void main()
{
    int x = 0;

    LSwitch: switch (x)
    {
        case 0:
            break LSwitch;

        default: return;
    }

    foo();
}