1 // PR c++/94067 2 // { dg-do compile } 3 // { dg-options "-Wconversion" } 4 5 static inline unsigned short swap(unsigned short x)6 swap (unsigned short x) 7 { 8 return (x >> 8) | static_cast<unsigned short>(x << 8); 9 } 10