xref: /llvm-project/flang/test/Parser/continuation-without-ampersand.f90 (revision ea3a3b25b93664c8be750ac3cd550855dcd1848b)
1! RUN: %flang_fc1 -fsyntax-only -pedantic %s 2>&1 | FileCheck %s
2! Continuation between repeated quotation marks
3subroutine 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'''
13end
14