From: Giovanni Bajo Date: Mon, 30 Jun 2003 19:01:08 +0000 (+0200) Subject: error6.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3c5e31b814a93efd8163731bee299aad0b66955;p=gcc.git error6.C: New test. 2003-06-30 Giovanni Bajo * g++.dg/other/error6.C: New test. From-SVN: r68723 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5163f6278cd..ae6c4171bed 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,8 @@ -2003-06-17 Giovanni Bajo +2003-06-30 Giovanni Bajo + + * g++.dg/other/error6.C: New test. + +2003-06-30 Giovanni Bajo PR c++/10750 * g++.dg/parse/constant2.C: New test. diff --git a/gcc/testsuite/g++.dg/other/error6.C b/gcc/testsuite/g++.dg/other/error6.C new file mode 100644 index 00000000000..9b403c7207b --- /dev/null +++ b/gcc/testsuite/g++.dg/other/error6.C @@ -0,0 +1,19 @@ +// { dg-do compile } +// Make sure we emit a decent error message when trying to mangle an +// expression not supported by the C++ ABI due to a defect. + +template +struct A {}; + +struct B +{ + static int foo(void); +}; + +template +A func(void); + +int main() +{ + func(); // { dg-error "sorry, unimplemented" } +}