]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2016-01-30 Dominique d'Humieres <dominiq@lps.ens.fr>
authordominiq <dominiq@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Jan 2016 14:07:19 +0000 (14:07 +0000)
committerdominiq <dominiq@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Jan 2016 14:07:19 +0000 (14:07 +0000)
PR fortran/66707
gfortran.dg/common_23.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233008 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/common_23.f90 [new file with mode: 0644]

index 8b92463c9966f86fb6a955a8d8ffba54866d348b..fc4232d80ee611916bada0fc543d6ff3720a45e3 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-30  Dominique d'Humieres  <dominiq@lps.ens.fr>
+
+       PR fortran/66707
+       gfortran.dg/common_23.f90: New test.
+
 2016-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        PR target/65546
diff --git a/gcc/testsuite/gfortran.dg/common_23.f90 b/gcc/testsuite/gfortran.dg/common_23.f90
new file mode 100644 (file)
index 0000000..3f1f005
--- /dev/null
@@ -0,0 +1,10 @@
+! { dg-do compile }
+!
+! PR fortran/66707
+! Check the compilation on wrong usage of common
+! Contributed by Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de>
+program p
+   integer, pointer :: a
+   common a, a ! { dg-error "is already in a COMMON block" }
+   common a
+end