test260
auto test260 =
q{--- test260.vx
// offsetof with non-static members
struct Color {
u8 r;
enum e;
u8 g;
alias e1 = e;
u8 b;
u8 a;
}
u64 offsetof_r() { return Color.r.offsetof; }
u64 offsetof_g() { return Color.g.offsetof; }
u64 offsetof_b() { return Color.b.offsetof; }
u64 offsetof_a() { return Color.a.offsetof; }
//u64 offsetof_e() { return Color.e.offsetof; }
};
tests passing
functionsvariables