| 1 |
! { dg-do compile } |
| 2 |
! { dg-options "-std=gnu" } |
| 3 |
! |
| 4 |
! Test warnings for logical .XOR. operator without -std=legacy. |
| 5 |
! |
| 6 |
|
| 7 |
implicit none |
| 8 |
|
| 9 |
logical, volatile :: in1, in2, xor_out |
| 10 |
xor_out = in1 .xor. in2 ! { dg-warning ".XOR. operator" } |
| 11 |
|
| 12 |
end |