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.
13 lines
139 B
Plaintext
13 lines
139 B
Plaintext
// Duplicate case value "1"
|
|
|
|
void foo(float f) {
|
|
switch (f) {
|
|
case 1:
|
|
++f;
|
|
case 2:
|
|
case 1:
|
|
f = 0;
|
|
}
|
|
}
|
|
|