Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb8.C
blobc660050628ec0271f4a084387b4a80466bf871fb
1 // { dg-do assemble  }
3 class foo {
4 public:
5   operator <<(const void *);  //{ dg-error "" } no return type
6   operator <<(char *);        //{ dg-error "" } no return type
7 };
9 void main()                   // { dg-error "must return .int" }
11   foo f;
12   f << (void*)0;