aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/operators21.C
blob: a4aac7d314385b8c90dd94d503c2a28a9f742a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Build don't link: 
// GROUPS passed operators

struct A {
        int x;
};

int operator()(A x,float y) {// ERROR - .*
        return 1;
}

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