OSDN Git Service

* g++.dg/other/exception-specification.C: New test
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Oct 2001 13:02:39 +0000 (13:02 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Oct 2001 13:02:39 +0000 (13:02 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46286 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/exception-specification.C [new file with mode: 0644]

index b683da2..a76fcbe 100644 (file)
@@ -1,3 +1,7 @@
+2001-10-14  Richard Sandiford  <rsandifo@redhat.com>
+
+       * g++.dg/other/exception-specification.C: New test
+
 2001-10-13  Tom Rix  <trix@redhat.com>
 
        * gcc.c-torture/execute/990826-0.x: AIX XFAIL -msoft-float.
diff --git a/gcc/testsuite/g++.dg/other/exception-specification.C b/gcc/testsuite/g++.dg/other/exception-specification.C
new file mode 100644 (file)
index 0000000..64807dd
--- /dev/null
@@ -0,0 +1,10 @@
+// { dg-do compile }
+
+struct S { void f (void); };
+
+typedef void f1 (void) throw (int); // { dg-error "exception" }
+typedef void (*f2) (void) throw (int); // { dg-error "exception" }
+typedef void (S::*f3) (void) throw (int); // { dg-error "exception" }
+
+void (*f4) (void) throw (int);
+void (S::*f5) (void) throw (int);