aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gfortran.dg/common_17.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/gcc/testsuite/gfortran.dg/common_17.f90')
-rw-r--r--gcc-4.8/gcc/testsuite/gfortran.dg/common_17.f9010
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/testsuite/gfortran.dg/common_17.f90 b/gcc-4.8/gcc/testsuite/gfortran.dg/common_17.f90
new file mode 100644
index 000000000..bc9602dd9
--- /dev/null
+++ b/gcc-4.8/gcc/testsuite/gfortran.dg/common_17.f90
@@ -0,0 +1,10 @@
+! { dg-do compile }
+! { dg-options "-Wall" }
+! PR fortran/49693 - this used to cause a spurious warning for the
+! variable in the common block.
+! Test case by Stephan Kramer.
+module foo
+ implicit none
+ integer:: a, b
+ common a
+end module foo