aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1999-04-15 01:49:12 -0400
committerJason Merrill <jason@gcc.gnu.org>1999-04-15 01:49:12 -0400
commit8856c2d20438edc7427350d5293c35a80e513526 (patch)
treee5093875844f30312a92275fce0418cc8edccc63 /gcc
parent1ac7a7f5e9fd9af28e1f627fd9060aec7807323c (diff)
downloadgcc-8856c2d20438edc7427350d5293c35a80e513526.zip
gcc-8856c2d20438edc7427350d5293c35a80e513526.tar.gz
gcc-8856c2d20438edc7427350d5293c35a80e513526.tar.bz2
new
From-SVN: r26471
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ext/attrib1.C9
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ext/jump1.C16
2 files changed, 23 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C
index d5002d8..dd14628 100644
--- a/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C
+++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C
@@ -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
index 0000000..5e3dc26
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.ext/jump1.C
@@ -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;
+}