comparison 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
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 // PR c++/94067
2 // { dg-do compile }
3 // { dg-options "-Wconversion" }
4
5 static inline unsigned short
6 swap (unsigned short x)
7 {
8 return (x >> 8) | static_cast<unsigned short>(x << 8);
9 }