1*c8dee2aaSAndroid Build Coastguard Worker// Expect 3 errors 2*c8dee2aaSAndroid Build Coastguard Workervoid func(); 3*c8dee2aaSAndroid Build Coastguard Worker 4*c8dee2aaSAndroid Build Coastguard Workervoid a; 5*c8dee2aaSAndroid Build Coastguard Workervoid b = func(); 6*c8dee2aaSAndroid Build Coastguard Workerint c; 7*c8dee2aaSAndroid Build Coastguard Worker 8*c8dee2aaSAndroid Build Coastguard Workervoid m() { 9*c8dee2aaSAndroid Build Coastguard Worker // Attempts to assign into a void variable via the switch-hoisting rewrite. 10*c8dee2aaSAndroid Build Coastguard Worker switch (c) { 11*c8dee2aaSAndroid Build Coastguard Worker case 1: void c = a; 12*c8dee2aaSAndroid Build Coastguard Worker } 13*c8dee2aaSAndroid Build Coastguard Worker} 14*c8dee2aaSAndroid Build Coastguard Worker 15*c8dee2aaSAndroid Build Coastguard Worker/*%%* 16*c8dee2aaSAndroid Build Coastguard Workervariables of type 'void' are not allowed 17*c8dee2aaSAndroid Build Coastguard Workervariables of type 'void' are not allowed 18*c8dee2aaSAndroid Build Coastguard Workerunknown identifier 'a' 19*c8dee2aaSAndroid Build Coastguard Workervariables of type 'void' are not allowed 20*c8dee2aaSAndroid Build Coastguard Worker*%%*/ 21