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

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