summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/oldstyle_1.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/oldstyle_1.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/oldstyle_1.f909
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/oldstyle_1.f90 b/gcc/testsuite/gfortran.dg/oldstyle_1.f90
new file mode 100644
index 000000000..e26c467bf
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/oldstyle_1.f90
@@ -0,0 +1,9 @@
+ integer i, j /1/, g/2/, h ! { dg-warning "" "" }
+ integer k, l(3) /2*2,1/ ! { dg-warning "" "" }
+ real pi /3.1416/, e ! { dg-warning "" "" }
+
+ if (j /= 1) call abort ()
+ if (g /= 2) call abort ()
+ if (any(l /= (/2,2,1/))) call abort ()
+ if (pi /= 3.1416) call abort ()
+ end