1#version 130 2 3void main() 4{ 5 int defined = 2; 6 int undefined; 7 float fooFloat; 8 int fooInt; 9 10 switch(undefined) { 11 case 0: 12 fooFloat = 0.0; 13 case 1: 14 fooFloat = 1.0; 15 default: 16 fooFloat = undefined; 17 } 18 19 switch(defined) { 20 case 0: 21 fooFloat = 0.0; 22 case 1: 23 fooFloat = 1.0; 24 default: 25 fooFloat = undefined; 26 } 27} 28 29