diff options
author | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-08 10:56:59 +0000 |
---|---|---|
committer | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-08 10:56:59 +0000 |
commit | d170651ff5dbfdef8d6f207c880f5ec4f31b1d0a (patch) | |
tree | 5eaf3ff77e851b8c3bc1b44dda144967413a2c86 /gcc/testsuite/gfortran.dg/pr17229.f | |
parent | 03ea9d8a4c32ddbb2983ba472d6b3c5f8f01c7be (diff) | |
download | gcc-d170651ff5dbfdef8d6f207c880f5ec4f31b1d0a.tar.gz |
PR fortran/17229
* match.c (gfc_match_arithmetic_if): New function to match an
arithmetic IF statement.
(gfc_match_if): Use gfc_match_arithmetic_if to match an
arithmetic IF statement embedded in a simple IF statement.
* gfortran.dg/pr17229.f: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97825 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pr17229.f')
-rw-r--r-- | gcc/testsuite/gfortran.dg/pr17229.f | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/pr17229.f b/gcc/testsuite/gfortran.dg/pr17229.f new file mode 100644 index 00000000000..b1a4471e410 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr17229.f @@ -0,0 +1,23 @@ +! PR fortran/17229 +! { dg-do run } + integer i + logical l + + l = .false. + i = -1 + if (l) if (i) 999,999,999 + + l = .true. + if (l) if (i) 10,999,999 + go to 999 + + 10 i = 0 + if (l) if (i) 999,20,999 + go to 999 + + 20 i = 1 + if (l) if (i) 999,999,30 + go to 999 + + 999 call abort + 30 end |