| 1 |
// { dg-do assemble } |
| 2 |
// GROUPS passed operators |
| 3 |
struct A { |
| 4 |
int x; |
| 5 |
}; |
| 6 |
|
| 7 |
int operator()(A x,float y) { // MUST be a member function// { dg-error "" } .* |
| 8 |
return 1; |
| 9 |
} |
| 10 |
|
| 11 |
int main() { |
| 12 |
A x; |
| 13 |
x(1.0); // { dg-error "" } no match for call |
| 14 |
} |