2 ! PR fortran/107215 - ICE in gfc_real2real and gfc_complex2complex
3 ! Contributed by G.Steinmetz
6 double precision, parameter :: z
= 1.0d0
9 x
= [real :: -'1'] * z
! { dg-error "Operand of unary numeric operator" }
10 y
= z
* [real :: -'1'] ! { dg-error "Operand of unary numeric operator" }
11 x
= [real :: -(.true
.)] * z
! { dg-error "Operand of unary numeric operator" }
12 y
= z
* [real :: -(.true
.)] ! { dg-error "Operand of unary numeric operator" }
13 x
= [complex :: -'1'] * z
! { dg-error "Operand of unary numeric operator" }
14 y
= z
* [complex :: -'1'] ! { dg-error "Operand of unary numeric operator" }
15 x
= [complex :: -(.true
.)] * z
! { dg-error "Operand of unary numeric operator" }
16 y
= z
* [complex :: -(.true
.)] ! { dg-error "Operand of unary numeric operator" }