re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git] / gcc / testsuite / gfortran.dg / continuation_1.f90
blob10b277dfae168f1ca6d864dd7f086d1a0cb952f7
1 ! { dg-do run }
2 ! { dg-options -Wampersand }
3 ! PR 19101 Test line continuations and spaces. Note: the missing ampersand
4 ! before "world" is non standard default behavior. Use -std=f95, -std=f2003,
5 ! -pedantic, -Wall, or -Wampersand to catch this error
6 ! Submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org>.
7 program main
8 character (len=40) &
10 c = "Hello, &
11 world!" ! { dg-warning "Missing '&' in continued character constant" }
12 if (c.ne.&
13 "Hello, world!")&
14 STOP 1;end program main