diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1999-04-15 01:49:12 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1999-04-15 01:49:12 -0400 |
commit | 8856c2d20438edc7427350d5293c35a80e513526 (patch) | |
tree | e5093875844f30312a92275fce0418cc8edccc63 /gcc | |
parent | 1ac7a7f5e9fd9af28e1f627fd9060aec7807323c (diff) | |
download | gcc-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.C | 9 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.ext/jump1.C | 16 |
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; +} |