! { dg-do run }IF(T1(1.0,1.0).NE.(1.0,1.0))CALL ABORT()IF(T1(1.0).NE.(1.0,0.0))CALL ABORT()IF(M1(1,2,3).NE.3)CALL ABORT()IF(M1(1,2,A4=4).NE.4)CALL ABORT()CONTAINSCOMPLEX FUNCTION T1(X,Y)REAL::XREAL,OPTIONAL::YT1=CMPLX(X,Y)END FUNCTION T1INTEGER FUNCTION M1(A1,A2,A3,A4)INTEGER::A1,A2INTEGER,OPTIONAL::A3,A4M1=MAX(A1,A2,A3,A4)END FUNCTION M1END