1 ! { dg-do run { xfail *-apple-darwin* *-*-freebsd* } }
2 ! Test XFAILed on these platforms because the system's printf() lacks
3 ! proper support for denormals.
5 ! This tests that the default formats for formatted I/O of reals are
6 ! wide enough and have enough precision, by checking that values can
7 ! be written and read back.
9 include "default_format_1.inc"
12 use test_default_format
14 if (test (tiny(0.0_4
), -1) /= 0) call abort
15 if (test (-tiny(0.0_4
), 1) /= 0) call abort
17 if (test (tiny(0.0_8
), -1) /= 0) call abort
18 if (test (-tiny(0.0_8
), 1) /= 0) call abort
21 ! { dg-final { cleanup-modules "test_default_format" } }