aarch64: Add missing ACLE macro for NEON-SVE Bridge
[official-gcc.git] / gcc / testsuite / gfortran.dg / gnu_logical_2.f90
blob0e24c722cc6f167f102371d574a374f51afb8b13
1 ! Testcases for the AND, OR and XOR functions (GNU intrinsics).
2 ! { dg-do compile }
3 integer i
4 logical l
5 real r
6 complex c
8 print *, and(i,i)
9 print *, and(l,l)
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" }
15 print *, or(i,i)
16 print *, or(l,l)
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" }
22 print *, xor(i,i)
23 print *, xor(l,l)
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" }
29 end