diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/expr1.C')
-rwxr-xr-x | gcc/testsuite/g++.old-deja/g++.other/expr1.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/expr1.C b/gcc/testsuite/g++.old-deja/g++.other/expr1.C new file mode 100755 index 0000000..fece8d4 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/expr1.C @@ -0,0 +1,11 @@ +// Build don't link: + +// Simplified from bug report by Trevor Taylor <ttaylor@powerup.com.au> + +struct T { + int operator()(int) { } // ERROR - candidate +}; + +int main() { + T()(); // ERROR - no such operator +} |