| 1 |
! RUN: %flang_fc1 -fsyntax-only -pedantic %s 2>&1 | FileCheck %s |
| 2 |
! Continuation between repeated quotation marks |
| 3 |
subroutine test |
| 4 |
!CHECK: portability: Character literal continuation line should have been preceded by '&' |
| 5 |
print *, 'needs an '& |
| 6 |
'ampersand''' |
| 7 |
!CHECK: portability: Character literal continuation line should have been preceded by '&' |
| 8 |
print *, 'also needs an '& |
| 9 |
'ampersand''' |
| 10 |
!CHECK-NOT: portability: Character literal continuation line should have been preceded by '&' |
| 11 |
print *, 'has an '& |
| 12 |
&'ampersand''' |
| 13 |
end |