1 /* [expr.eq] If both refer to (possibly different) members of the same union
2 (12.3), they compare equal. */
3 // { dg-do run { target c++11 } }
4 // { dg-additional-options -O }
12 #define SA(X) static_assert ((X),#X)
14 SA (!(&U::i != &U::j));
16 #define assert(X) do { if (!(X)) __builtin_abort(); } while(0)
18 void f (int U::*p, int U::*q)
26 assert (&U::i == &U::j);
27 assert (!(&U::i != &U::j));