2 // { dg-do run { target c++14 } }
6 // This one caught a call to gcc_unreachable in
7 // cp/constexpr.cc:label_matches, when passed a convert_expr from the
9 constexpr unsigned char swbar(__UINTPTR_TYPE__ baz)
24 // For reference, the equivalent* if-statements.
25 constexpr unsigned char ifbar(__UINTPTR_TYPE__ baz)
37 __attribute__ ((__noipa__))
46 unsigned const char c = swbar(reinterpret_cast<__UINTPTR_TYPE__>(&foo));
48 unsigned const char d = ifbar(reinterpret_cast<__UINTPTR_TYPE__>(&foo));
50 unsigned const char e = swbar((__UINTPTR_TYPE__) &foo);
52 unsigned const char f = ifbar((__UINTPTR_TYPE__) &foo);