Create embedded-5_0-branch branch for development on ARM embedded cores.
[official-gcc.git] / embedded-5_0-branch / gcc / testsuite / g++.dg / dfp / nofields.C
blob7234672d4e0eb59a8b36e9b3bfe123bf0c5c8f29
1 // PR c++/46862
2 // { dg-do compile }
4 namespace std
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   }
14 void
15 foo (std::decimal::decimal32 x,
16      std::decimal::decimal64 y,
17      std::decimal::decimal128 z)