diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/continuation_1.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/continuation_1.f90 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/continuation_1.f90 b/gcc/testsuite/gfortran.dg/continuation_1.f90 new file mode 100644 index 000000000..1036db9cb --- /dev/null +++ b/gcc/testsuite/gfortran.dg/continuation_1.f90 @@ -0,0 +1,15 @@ +! { 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!")& + call abort();end program main + |