blob: c1031017a1f62b39007c0c81f77b08dec9ff158e [file] [log] [blame]
// PR c++/94067
// { dg-do compile }
// { dg-options "-Wconversion" }
static inline unsigned short
swap (unsigned short x)
{
return (x >> 8) | static_cast<unsigned short>(x << 8);
}