Commit 8856c2d2 by Jason Merrill

new

From-SVN: r26471
parent 1ac7a7f5
// 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> // Contributed by Jason Merrill <jason@cygnus.com>
// Skip if not target: i?86-*-* // Skip if not target: i?86-*-*
// Build don't link: // 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)());
// 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment