mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
[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:
@ -514,7 +514,9 @@ gdb_test "ptype int * restrict" "type = int \\* restrict"
|
||||
|
||||
# C++ does not have "restrict".
|
||||
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.
|
||||
gdb_test "ptype int * __restrict__" "type = int \\* __restrict__"
|
||||
# There is a GCC extension for __restrict__, though.
|
||||
gdb_test "ptype int * __restrict__" "type = int \\* __restrict__"
|
||||
}
|
||||
|
Reference in New Issue
Block a user