Blame SOURCES/0019-Add-tests-for-AUTOMATIC-keyword.patch

840d93
From 52e49e5edaf2c4de5974b42dd359c0f57546c640 Mon Sep 17 00:00:00 2001
840d93
From: Mark Doffman <mark.doffman@codethink.co.uk>
840d93
Date: Thu, 5 Jun 2014 20:47:51 +0000
840d93
Subject: [PATCH 19/23] Add tests for AUTOMATIC keyword
840d93
840d93
These tests were written by Mark Doffman for his own implementation of
840d93
the AUTOMATIC keyword. Since then, Fritz Reese's implementation was
840d93
merged upstream so we no longer carry Mark's patches but the tests
840d93
may add some useful extra test coverage. Or they might not.
840d93
---
840d93
 gcc/testsuite/gfortran.dg/automatic_1.f90      | 31 ++++++++++++++++++++++++++
840d93
 gcc/testsuite/gfortran.dg/automatic_common.f90 |  6 +++++
840d93
 gcc/testsuite/gfortran.dg/automatic_repeat.f90 |  8 +++++++
840d93
 gcc/testsuite/gfortran.dg/automatic_save.f90   |  8 +++++++
840d93
 4 files changed, 53 insertions(+)
840d93
 create mode 100644 gcc/testsuite/gfortran.dg/automatic_1.f90
840d93
 create mode 100644 gcc/testsuite/gfortran.dg/automatic_common.f90
840d93
 create mode 100644 gcc/testsuite/gfortran.dg/automatic_repeat.f90
840d93
 create mode 100644 gcc/testsuite/gfortran.dg/automatic_save.f90
840d93
840d93
diff --git a/gcc/testsuite/gfortran.dg/automatic_common.f90 b/gcc/testsuite/gfortran.dg/automatic_common.f90
840d93
new file mode 100644
840d93
index 0000000..5ec016f
840d93
--- /dev/null
840d93
+++ b/gcc/testsuite/gfortran.dg/automatic_common.f90
840d93
@@ -0,0 +1,6 @@
840d93
+! { dg-do compile }
840d93
+! { dg-options "-fdec-static" }
840d93
+! A common variable may not have the AUTOMATIC attribute.
840d93
+INTEGER, AUTOMATIC :: X
840d93
+COMMON /COM/ X ! { dg-error "conflicts with AUTOMATIC attribute" }
840d93
+END
840d93
-- 
840d93
2.9.5
840d93