Switches with both uniform and varying "switch" expressions are supported. Switch statements with varying expressions and very large numbers of labels may not perform well; some issues to be filed shortly will track opportunities for improving these.
15 lines
195 B
Plaintext
15 lines
195 B
Plaintext
// "default" label illegal outside of "switch" statement
|
|
|
|
void foo(float f) {
|
|
default:
|
|
++f;
|
|
switch (f) {
|
|
case 1:
|
|
++f;
|
|
continue;
|
|
case 2:
|
|
f = 0;
|
|
}
|
|
}
|
|
|