1 ! Testcases for the AND, OR and XOR functions (GNU intrinsics).
10 print *, and(i
,r
) ! { dg-error "must be INTEGER, LOGICAL, or a BOZ" }
11 print *, and(c
,l
) ! { dg-error "must be INTEGER, LOGICAL, or a BOZ" }
12 print *, and(i
,l
) ! { dg-error "must be the same type" }
13 print *, and(l
,i
) ! { dg-error "must be the same type" }
17 print *, or(i
,r
) ! { dg-error "must be INTEGER, LOGICAL, or a BOZ" }
18 print *, or(c
,l
) ! { dg-error "must be INTEGER, LOGICAL, or a BOZ" }
19 print *, or(i
,l
) ! { dg-error "must be the same type" }
20 print *, or(l
,i
) ! { dg-error "must be the same type" }
24 print *, xor(i
,r
) ! { dg-error "must be INTEGER, LOGICAL, or a BOZ" }
25 print *, xor(c
,l
) ! { dg-error "must be INTEGER, LOGICAL, or a BOZ" }
26 print *, xor(i
,l
) ! { dg-error "must be the same type" }
27 print *, xor(l
,i
) ! { dg-error "must be the same type" }