summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/missing_parens_2.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/missing_parens_2.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/missing_parens_2.f9014
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/missing_parens_2.f90 b/gcc/testsuite/gfortran.dg/missing_parens_2.f90
new file mode 100644
index 000000000..b06c2ae67
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/missing_parens_2.f90
@@ -0,0 +1,14 @@
+! { dg-do run }
+! PR34325 Wrong error message for syntax error
+program aa
+implicit none
+real(kind=8)::r1=0
+character(25) :: a
+a = 'I am not a )))))'')''.'
+if ((((((a /= "I am not a )))))')'.")))))) call abort
+if ((((((a /= 'I am not a )))))'')''.')))))) call abort
+a = "I am not a )))))"")""."
+if ((((((a /= "I am not a )))))"")"".")))))) call abort
+if (((3*r1)**2)>= 0) a = "good"
+if (a /= "good") call abort
+end