blob: 5eb67554fdf108670e5d479ae2e5ac7a02ce84fd [file] [log] [blame]
// 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);
}