[PUSHED] gdb/testsuite: escape '*' character in pattern used by flang

Message ID 20210602091417.3163767-1-andrew.burgess@embecosm.com
State New
Headers show
Series
  • [PUSHED] gdb/testsuite: escape '*' character in pattern used by flang
Related show

Commit Message

Andrew Burgess June 2, 2021, 9:14 a.m.
One of the integer type patterns used by flang included a '*'
character which was not escaped.

gdb/testsuite/ChangeLog:

	* lib/fortran.exp (fortran_int8): Escape '*' in pattern.
---
 gdb/testsuite/ChangeLog       | 4 ++++
 gdb/testsuite/lib/fortran.exp | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

-- 
2.25.4

Patch

diff --git a/gdb/testsuite/lib/fortran.exp b/gdb/testsuite/lib/fortran.exp
index 35db863e9c8..f8c442fd09c 100644
--- a/gdb/testsuite/lib/fortran.exp
+++ b/gdb/testsuite/lib/fortran.exp
@@ -49,7 +49,7 @@  proc fortran_int8 {} {
     } elseif {[test_compiler_info {gcc-*}]} {
 	return "integer\\(kind=8\\)"
     } elseif {[test_compiler_info {clang-*}]} {
-	return "integer*8"
+	return "integer\\*8"
     } elseif {[test_compiler_info {icc-*}]} {
 	return "INTEGER\\(8\\)"
     } else {