Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/expr1.C

raw
1 // { dg-do assemble }
2
3 // Simplified from bug report by Trevor Taylor <[email protected]>
4
5 struct T {
6 int operator()(int) { return 0; } // { dg-message "operator|candidate expects" }
7 };
8
9 int main() {
10 T()(); // { dg-error "match" } no such operator
11 return 0;
12 }