1 2 3 4 5 6 7 8 9 10 11 12 13 14
// { dg-do assemble } class foo { public: operator <<(const void *); //{ dg-error "" } no return type operator <<(char *); //{ dg-error "" } no return type }; void main() // { dg-error "must return .int" } { foo f; f << (void*)0; }