new
authorJason Merrill <jason@gcc.gnu.org>
Thu, 15 Apr 1999 05:49:12 +0000 (01:49 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 15 Apr 1999 05:49:12 +0000 (01:49 -0400)
From-SVN: r26471

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

index d5002d8ea34091b27adbdd989383108bfcf30a64..dd14628956bb6bc6ec7452008a240e5930b229bc 100644 (file)
@@ -1,6 +1,11 @@
-// Test for using prefix attributes in an abstract declarator.
+// Test for using prefix attributes in a parameter decl.
 // Contributed by Jason Merrill <jason@cygnus.com>
 // Skip if not target: i?86-*-*
 // Build don't link:
 
-void f (void (__attribute__((__stdcall__)) *)());
+#define _stdcall __attribute__ ((__stdcall__))
+
+typedef void (_stdcall* pfn)();
+
+void f (void (_stdcall*)    ());
+void f (void (_stdcall* pfn)());
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/jump1.C b/gcc/testsuite/g++.old-deja/g++.ext/jump1.C
new file mode 100644 (file)
index 0000000..5e3dc26
--- /dev/null
@@ -0,0 +1,16 @@
+// Test that we can jump over the declaration of a non-POD object.
+// Contributed by Jason Merrill <jason@cygnus.com>
+// Special g++ Options: -fpermissive -w
+
+struct A { };
+union U {
+  void (A::*p)();
+};
+
+int main()
+{
+  goto foo;
+  U u;
+ foo:
+  return 0;
+}