From: Alexandre Oliva Date: Sat, 5 Dec 1998 22:46:57 +0000 (+0000) Subject: * g++.old-deja/g++.other/expr1.C: New test. X-Git-Tag: prereleases/libgcj-0.1~1775 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2732314e1eb95831b9f6632acaa5041bd35f7bb6;p=thirdparty%2Fgcc.git * g++.old-deja/g++.other/expr1.C: New test. From-SVN: r24114 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e4aea189bbe6..16461527d455 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 1998-12-06 Alexandre Oliva + * g++.old-deja/g++.other/expr1.C: New test. + * g++.old-deja/g++.eh/tmpl3.C: New test. * g++.old-deja/g++.eh/tmpl2.C: New test. 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 100644 index 000000000000..0f5fdcf12ee8 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/expr1.C @@ -0,0 +1,13 @@ +// Build don't link: + +// crash test - XFAIL *-*-* + +// Simplified from bug report by Trevor Taylor + +struct T { + int operator()(int) { } +}; + +int main() { + T()(); // ERROR - no such operator +}