aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGiovanni Bajo <giovannibajo@libero.it>2003-06-30 21:01:08 +0200
committerWolfgang Bangerth <bangerth@gcc.gnu.org>2003-06-30 13:01:08 -0600
commitb3c5e31b814a93efd8163731bee299aad0b66955 (patch)
tree1d63ee69a869ad6bb008a85cf055d732ff52fe66 /gcc
parent813e059114a1a18b4e352d15bd7f1ccc8c431922 (diff)
downloadgcc-b3c5e31b814a93efd8163731bee299aad0b66955.zip
gcc-b3c5e31b814a93efd8163731bee299aad0b66955.tar.gz
gcc-b3c5e31b814a93efd8163731bee299aad0b66955.tar.bz2
error6.C: New test.
2003-06-30 Giovanni Bajo <giovannibajo@libero.it> * g++.dg/other/error6.C: New test. From-SVN: r68723
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/other/error6.C19
2 files changed, 24 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5163f62..ae6c417 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,4 +1,8 @@
-2003-06-17 Giovanni Bajo <giovannibajo@libero.it>
+2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
+
+ * g++.dg/other/error6.C: New test.
+
+2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
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 0000000..9b403c7
--- /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 <int N>
+struct A {};
+
+struct B
+{
+ static int foo(void);
+};
+
+template <class T>
+A<sizeof(T::foo())> func(void);
+
+int main()
+{
+ func<B>(); // { dg-error "sorry, unimplemented" }
+}