view gcc/testsuite/g++.dg/warn/Wconversion-pr94067.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

// 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);
}