Debian Codegraph @

gcc/testsuite/g++.dg/DRs/dr2627.C

raw
1 // DR 2627 - Bit-fields and narrowing conversions
2 // { dg-do compile { target c++20 } }
3
4 #include <compare>
5
6 struct C {
7 long long i : 8;
8 };
9
10 void f() {
11 C x{1}, y{2};
12 x.i <=> y.i;
13 }