diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/save_common.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/save_common.f90 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/save_common.f90 b/gcc/testsuite/gfortran.dg/save_common.f90 new file mode 100644 index 000000000..c9878026c --- /dev/null +++ b/gcc/testsuite/gfortran.dg/save_common.f90 @@ -0,0 +1,6 @@ +! { dg-do compile } +! PR20847 - A common variable may not have the SAVE attribute. +! Contributed by Joost VandeVondele <jv244@cam.ac.uk> +INTEGER, SAVE :: X +COMMON /COM/ X ! { dg-error "conflicts with SAVE attribute" } +END |