From 8ebe42f1e42893559ba7403f9d9f8001dae658cc Mon Sep 17 00:00:00 2001 From: Dave Love Date: Fri, 15 May 1998 06:23:01 +0000 Subject: [PATCH] New file. From-SVN: r19774 --- .../g77.f-torture/noncompile/check0.f | 11 ++++++ .../g77.f-torture/noncompile/noncompile.exp | 39 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 gcc/testsuite/g77.f-torture/noncompile/check0.f create mode 100644 gcc/testsuite/g77.f-torture/noncompile/noncompile.exp diff --git a/gcc/testsuite/g77.f-torture/noncompile/check0.f b/gcc/testsuite/g77.f-torture/noncompile/check0.f new file mode 100644 index 000000000000..fc3c6ca730e2 --- /dev/null +++ b/gcc/testsuite/g77.f-torture/noncompile/check0.f @@ -0,0 +1,11 @@ +CCC Abort fixed by: +CCC1998-04-21 Jim Wilson +CCC +CCC * stmt.c (check_seenlabel): When search for line number note for +CCC warning, handle case where there is no such note. + logical l(10) + integer i(10) + goto (10,20),l + goto (10,20),i + 10 stop + 20 end diff --git a/gcc/testsuite/g77.f-torture/noncompile/noncompile.exp b/gcc/testsuite/g77.f-torture/noncompile/noncompile.exp new file mode 100644 index 000000000000..7087aa2eb4db --- /dev/null +++ b/gcc/testsuite/g77.f-torture/noncompile/noncompile.exp @@ -0,0 +1,39 @@ +# Copyright (C) 1988, 90, 91, 92, 97, 1998 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gcc@prep.ai.mit.edu + +# This file was written by Jeff Law. (law@cs.utah.edu) + +# +# These tests come from Torbjorn Granlund (tege@cygnus.com) +# C torture test suite. +# + +load_lib mike-g77.exp + +# Test check0.f +prebase + +set src_code check0.f +# Not really sure what the error should be here... +set compiler_output ".*:8.*:9" + +set groups {passed gcc-noncompile} + +postbase $src_code $run $groups + -- 2.43.5