aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb8.C
blob: 213bb6de90be4b6719119223b39d429fdc54c685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

class foo {
public:
  operator <<(const void *);  //ERROR - no return type
  operator <<(char *);        //ERROR - no return type
};

void main()
{                             //ERROR - wrong return type for main
  foo f;
  f << (void*)0;
}