fail17
auto fail17 =
q{
--- fail17
// Test instantiation of opaque structs
struct Opaque;
Opaque op_global;
Opaque op_return(Opaque op_param) {
Opaque op_local;
return op_local;
}
--- <error>
fail17:3:9: Error: cannot declare variable `op_global` of opaque type `Opaque`
fail17:4:9: Error: function cannot return opaque type `Opaque`
fail17:4:26: Error: cannot declare parameter of opaque type `Opaque`
fail17:5:10: Error: cannot declare variable `op_local` of opaque type `Opaque`
};
tests failing
functionsvariables