summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/logint_2.f
diff options
context:
space:
mode:
authorBrooks Moses <brooks.moses@codesourcery.com>2006-12-19 00:46:46 +0000
committerBrooks Moses <brooks@gcc.gnu.org>2006-12-18 16:46:46 -0800
commit939d0fcd1fb007528ba08c008f36be36ca8ad933 (patch)
tree9e5b5ab14a483589b38f87c1f10db32e61eddf5b /gcc/testsuite/gfortran.dg/logint_2.f
parent5dfae29be4562f419ca1d5b8fe04c64259f58dc4 (diff)
downloadgcc-939d0fcd1fb007528ba08c008f36be36ca8ad933.tar.gz
advance.f90: Renamed to advance_1.f90
* gfortran.dg/advance.f90: Renamed to advance_1.f90 * gfortran.dg/append-1.f90: Renamed to append_1.f90 * gfortran.dg/array-1.f90: Renamed to array_1.f90 * gfortran.dg/assign_4.f90: Renamed to assign_8.f90 * gfortran.dg/backspace.f: Renamed to backspace_1.f * gfortran.dg/backspace.f90: Renamed to backspace_7.f90 * gfortran.dg/default_initialization.f: Renamed to default_initialization_1.f * gfortran.dg/dollar_edit_descriptor-1.f: Renamed to dollar_edit_descriptor_1.f * gfortran.dg/dollar_edit_descriptor-2.f: Renamed to dollar_edit_descriptor_2.f * gfortran.dg/dollar_edit_descriptor-3.f: Renamed to dollar_edit_descriptor_3.f * gfortran.dg/logint-1.f: Renamed to logint_1.f * gfortran.dg/logint-2.f: Renamed to logint_2.f * gfortran.dg/logint-3.f: Renamed to logint_3.f * gfortran.dg/advance_1.f90: Renamed from advance.f90 * gfortran.dg/append_1.f90: Renamed from append-1.f90 * gfortran.dg/array_1.f90: Renamed from array-1.f90 * gfortran.dg/assign_8.f90: Renamed from assign_4.f90 * gfortran.dg/backspace_1.f: Renamed from backspace.f * gfortran.dg/backspace_7.f90: Renamed from backspace.f90 * gfortran.dg/default_initialization_1.f: Renamed from default_initialization.f * gfortran.dg/dollar_edit_descriptor_1.f: Renamed from dollar_edit_descriptor-1.f * gfortran.dg/dollar_edit_descriptor_2.f: Renamed from dollar_edit_descriptor-2.f * gfortran.dg/dollar_edit_descriptor_3.f: Renamed from dollar_edit_descriptor-3.f * gfortran.dg/logint_1.f: Renamed from logint-1.f * gfortran.dg/logint_2.f: Renamed from logint-2.f * gfortran.dg/logint_3.f: Renamed from logint-3.f From-SVN: r120035
Diffstat (limited to 'gcc/testsuite/gfortran.dg/logint_2.f')
-rw-r--r--gcc/testsuite/gfortran.dg/logint_2.f43
1 files changed, 43 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/logint_2.f b/gcc/testsuite/gfortran.dg/logint_2.f
new file mode 100644
index 00000000000..19d387315c8
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/logint_2.f
@@ -0,0 +1,43 @@
+c { dg-do compile }
+c { dg-options "-O2 -std=f95" }
+ LOGICAL(kind=1) l1
+ LOGICAL(kind=2) l2
+ LOGICAL l4
+ INTEGER(kind=1) i1
+ INTEGER(kind=2) i2
+ INTEGER i4
+
+ i1 = .TRUE. ! { dg-error "convert" }
+ i2 = .TRUE. ! { dg-error "convert" }
+ i4 = .TRUE. ! { dg-error "convert" }
+
+ i1 = .FALSE. ! { dg-error "convert" }
+ i2 = .FALSE. ! { dg-error "convert" }
+ i4 = .FALSE. ! { dg-error "convert" }
+
+ i1 = l1 ! { dg-error "convert" }
+ i2 = l1 ! { dg-error "convert" }
+ i4 = l1 ! { dg-error "convert" }
+
+ i1 = l2 ! { dg-error "convert" }
+ i2 = l2 ! { dg-error "convert" }
+ i4 = l2 ! { dg-error "convert" }
+
+ i1 = l4 ! { dg-error "convert" }
+ i2 = l4 ! { dg-error "convert" }
+ i4 = l4 ! { dg-error "convert" }
+
+ l1 = i1 ! { dg-error "convert" }
+ l2 = i1 ! { dg-error "convert" }
+ l4 = i1 ! { dg-error "convert" }
+
+ l1 = i2 ! { dg-error "convert" }
+ l2 = i2 ! { dg-error "convert" }
+ l4 = i2 ! { dg-error "convert" }
+
+ l1 = i4 ! { dg-error "convert" }
+ l2 = i4 ! { dg-error "convert" }
+ l4 = i4 ! { dg-error "convert" }
+
+ END
+