new
authorJason Merrill <jason@gcc.gnu.org>
Tue, 13 Apr 1999 00:44:56 +0000 (20:44 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 13 Apr 1999 00:44:56 +0000 (20:44 -0400)
From-SVN: r26395

gcc/testsuite/g++.old-deja/g++.ext/attrib2.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C
new file mode 100644 (file)
index 0000000..8c32d43
--- /dev/null
@@ -0,0 +1,15 @@
+// Test that stdcall doesn't prevent us from using op delete.
+// Contributed by Jason Merrill <jason@cygnus.com>
+// Skip if not target: i?86-*-*
+
+struct A {
+  void operator delete (void *) __attribute__ ((stdcall));
+};
+
+void A::operator delete (void *) { }
+
+int main()
+{
+  A* ap = new A;
+  delete ap;
+}