PR fortran/42131 Sign test using ternary operator