mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-28 18:56:06 +00:00
16 lines
567 B
Fortran
16 lines
567 B
Fortran
! { dg-do run }
|
|
! { dg-options -Wampersand }
|
|
! PR 19101 Test line continuations and spaces. Note: the missing ampersand
|
|
! before "world" is non standard default behavior. Use -std=f95, -std=f2003,
|
|
! -pedantic, -Wall, or -Wampersand to catch this error
|
|
! Submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org>.
|
|
program main
|
|
character (len=40) &
|
|
c
|
|
c = "Hello, &
|
|
world!" ! { dg-warning "Missing '&' in continued character constant" }
|
|
if (c.ne.&
|
|
"Hello, world!")&
|
|
STOP 1;end program main
|
|
|