Debian Codegraph @

gcc/testsuite/g++.dg/ext/bitint2.C

raw
1 // PR c/102989
2 // { dg-do compile }
3 // { dg-options "" }
4
5 _BitInt(63) a; // { dg-error "expected" }
6 unsigned _BitInt(31) b; // { dg-error "expected" }
7 int c = 21wb; // { dg-error "invalid suffix 'wb' on integer constant" "" { target c++98_only } }
8 // { dg-error "unable to find numeric literal operator 'operator\"\"wb'" "" { target c++11 } .-1 }
9 long long d = 60594869054uwb; // { dg-error "invalid suffix 'uwb' on integer constant" "" { target c++98_only } }
10 // { dg-error "unable to find numeric literal operator 'operator\"\"uwb'" "" { target c++11 } .-1 }