summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/boz_12.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/boz_12.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/boz_12.f9014
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/boz_12.f90 b/gcc/testsuite/gfortran.dg/boz_12.f90
new file mode 100644
index 000000000..4c5c750d5
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/boz_12.f90
@@ -0,0 +1,14 @@
+! { dg-do compile }
+!
+program test
+ implicit none
+ real x4
+ double precision x8
+
+ x4 = 1.7
+ x8 = 1.7
+ write(*,*) complex(x4,z'1FFFFFFFF') ! { dg-error "too" }
+ write(*,*) cmplx(x8,z'1FFFFFFFFFFFFFFFF') ! { dg-error "too" }
+ write(*,*) complex(x8,z'1FFFFFFFFFFFFFFFF') ! { dg-error "too" }
+ write(*,*) dcmplx(x8,z'1FFFFFFFFFFFFFFFF') ! { dg-error "too" }
+end program test