llvm-project
13 строк · 526.0 Байт
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 '&'
5print *, 'needs an '&
6'ampersand'''
7!CHECK: portability: Character literal continuation line should have been preceded by '&'
8print *, 'also needs an '&
9'ampersand'''
10!CHECK-NOT: portability: Character literal continuation line should have been preceded by '&'
11print *, 'has an '&
12&'ampersand'''
13end
14