summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/namelist_print_2.f
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/namelist_print_2.f')
-rw-r--r--gcc/testsuite/gfortran.dg/namelist_print_2.f13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/namelist_print_2.f b/gcc/testsuite/gfortran.dg/namelist_print_2.f
new file mode 100644
index 000000000..c37e3591d
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/namelist_print_2.f
@@ -0,0 +1,13 @@
+! Test Non standard PRINT namelist - PR21432 is
+! not accepted by -std=f95
+!
+! Contributor Paul Thomas <pault@gcc.gnu.org>
+!
+! { dg-do compile }
+! { dg-options "-std=f95" }
+!
+ real x
+ namelist /mynml/ x
+ x = 1
+ print mynml ! { dg-error "PRINT namelist.*extension" "" }
+ end