• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Expect 3 errors
2void func();
3
4void a;
5void b = func();
6int c;
7
8void m() {
9    // Attempts to assign into a void variable via the switch-hoisting rewrite.
10    switch (c) {
11        case 1: void c = a;
12    }
13}
14
15/*%%*
16variables of type 'void' are not allowed
17variables of type 'void' are not allowed
18unknown identifier 'a'
19variables of type 'void' are not allowed
20*%%*/
21