aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/operators1.C
blob: 6146eb401a02175eaad7d97f06dee20762b04fde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Build don't link: 
// GROUPS passed operators
struct A {
	int x;
};

int operator()(A x,float y) { // MUST be a member function// ERROR - .*
	return 1;
}

main() {
	A x;
	x(1.0); // ERROR - no match for call
}