Previously these testcases had C++98 fallback versions of the testcase code to feed to the compiler if it didn't set __cplusplus to a value which indicated support for the required C++ version, as well as the C++14 or C++17 code which was fed to SWIG, and also to the compiler if it was new enough. This approach allowed some testing of such features with an older compiler, but it complicates the testcases and not all new C++ features can be tested in this way (indeed some of the existing testcases don't fully exercise the feature being tested currently). C++14 and C++17 support are also much more widespread than they were 3.5 years ago when this approach was first implemented, so it makes more sense to switch C++14 and C++17 testcases to require a suitable compiler, like how C++11 testing always has.
13 lines
253 B
OpenEdge ABL
13 lines
253 B
OpenEdge ABL
%module cpp17_hex_floating_literals
|
|
|
|
%inline %{
|
|
double f1 = 0x.0p1;
|
|
double f2 = 0x0.p1;
|
|
double f3 = 0x0.0p-1;
|
|
double f4 = 0xf.p-1;
|
|
double f5 = 0xA.0p1;
|
|
double f6 = 0x0.10P+10;
|
|
double f7 = 0xb2F.p2;
|
|
float f8 = 0x1234AP1F;
|
|
float f9 = 0x45A1.D1A2p+10f;
|
|
%}
|