xref: /aosp_15_r20/external/skia/resources/sksl/errors/VoidVariable.rts (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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