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
8