diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/initialization_5.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/initialization_5.f90 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/initialization_5.f90 b/gcc/testsuite/gfortran.dg/initialization_5.f90 new file mode 100644 index 00000000000..b5cfe0f0e6b --- /dev/null +++ b/gcc/testsuite/gfortran.dg/initialization_5.f90 @@ -0,0 +1,7 @@ +! initialization expression, now allowed in Fortran 2003 +! PR fortran/29962 +! { dg-do run } +! { dg-options "-std=f2003 -fall-intrinsics" } + real, parameter :: three = 27.0**(1.0/3.0) + if(abs(three-3.0)>epsilon(three)) call abort() +end |