test87
auto test87 =
q{--- test87
// pointer type expr parsing
enum ptrsize = i32*.sizeof;
enum ptrsize2 = i32**.sizeof;
enum arrsize = i32[4].sizeof;
struct S { i64 var; } // 8
enum S_ptrsize = S*.sizeof;
enum S_ptrsize2 = S**.sizeof;
enum S_arrsize = S[4].sizeof; // 32
S[S_arrsize] arr; // 256
u64 S_sizeof() { return S.sizeof; } // 8
u64 arr_sizeof() { return arr.sizeof; } // 256
};
tests passing
functionsvariables