Debian Codegraph @

gcc/testsuite/g++.dg/dfp/nofields.C

raw
1 // PR c++/46862
2 // { dg-do compile }
3
4 namespace std
5 {
6 namespace decimal
7 {
8 class decimal32 { }; // { dg-error "does not have any fields" }
9 class decimal64 { }; // { dg-error "does not have any fields" }
10 class decimal128 { }; // { dg-error "does not have any fields" }
11 }
12 }
13
14 void
15 foo (std::decimal::decimal32 x,
16 std::decimal::decimal64 y,
17 std::decimal::decimal128 z)
18 {
19 }