aboutsummaryrefslogtreecommitdiff
path: root/resources/sksl/errors/VoidInStruct.rts
blob: 114d98e1dbae5ead3607ff47497778ef7a627346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Expect 4 errors

struct S {
    void a;
    void b[2];
    void[2] c;
    void[2] d[2];
};

/*%%*
type 'void' may not be used in an array
type 'void' may not be used in an array
type 'void' may not be used in an array
type 'void' is not permitted in a struct
*%%*/