Commit 92a217ad by Jason Merrill

new

From-SVN: r26011
parent a3590d34
// Test for proper handling of field calls.
// Contributed by Jason Merrill <jason@cygnus.com>
struct A {
inline A* operator()() { return this; }
};
struct B {
int i;
union { A a; };
};
int
main ()
{
B b;
A* ap = &b.a;
A* ap2 = b.a();
return (ap != ap2);
}
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