⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 default_format_2.f90

📁 用于进行gcc测试
💻 F90
字号:
! { dg-require-effective-target fortran_large_real }! { dg-do run { xfail powerpc*-apple-darwin* *-*-freebsd* powerpc*-*-linux* } }! Test XFAILed on these platforms because the system's printf() lacks! proper support for denormalized long doubles. See PR24685!! This tests that the default formats for formatted I/O of reals are! wide enough and have enough precision, by checking that values can! be written and read back.!include "default_format_2.inc"program main  use test_default_format  if (test (1.0_kl, 0) /= 0) call abort  if (test (0.0_kl, 0) /= 0) call abort  if (test (tiny(0.0_kl), 1) /= 0) call abort  if (test (-tiny(0.0_kl), -1) /= 0) call abort  if (test (huge(0.0_kl), -1) /= 0) call abort  if (test (-huge(0.0_kl), 1) /= 0) call abortend program main!! { dg-final { cleanup-modules "test_default_format" } }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -