1 2 3 4 5 6 7
! Testcase for the COMPLEX intrinsic ! { dg-do compile } complex c c = complex(.true.,1.0) ! { dg-error "must be INTEGER or REAL" } c = complex(1) ! { dg-error "Missing actual argument" } c = complex(1,c) ! { dg-error "must be INTEGER or REAL" } end