[gdb/testsuite] Fix DUPLICATE in gdb.base/cvexpr.exp

Fix:
...
DUPLICATE: gdb.base/cvexpr.exp: ptype int * restrict
...
using with_test_prefix.

Tested on x86_64-linux.
This commit is contained in:
Tom de Vries
2021-09-30 19:07:48 +02:00
parent e46da7ec1b
commit 85d74f2936

View File

@ -514,7 +514,9 @@ gdb_test "ptype int * restrict" "type = int \\* restrict"
# C++ does not have "restrict". # C++ does not have "restrict".
gdb_test_no_output "set lang c++" gdb_test_no_output "set lang c++"
gdb_test "ptype int * restrict" "A syntax error in expression.*" with_test_prefix c++ {
gdb_test "ptype int * restrict" "A syntax error in expression.*"
# There is a GCC extension for __restrict__, though. # There is a GCC extension for __restrict__, though.
gdb_test "ptype int * __restrict__" "type = int \\* __restrict__" gdb_test "ptype int * __restrict__" "type = int \\* __restrict__"
}