fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / complex_intrinsic_2.f90
blob1327e4a952b3496182acec6c0bee6465dc37b7a2
1 ! Testcase for the COMPLEX intrinsic
2 ! { dg-do compile }
3 complex c
4 c = complex(.true.,1.0) ! { dg-error "must be INTEGER or REAL" }
5 c = complex(1) ! { dg-error "Missing actual argument" }
6 c = complex(1,c) ! { dg-error "must be INTEGER or REAL" }
7 end