* gdb.base/nodebug.exp: Test ability to call a function and pass
it a string (even with no debugging info).
This commit is contained in:
parent
f6bc42a3c0
commit
6b62554aee
|
@ -95,7 +95,7 @@ if ![file exists $binfile] then {
|
|||
|
||||
# This test is not as obscure as it might look. `p getenv ("TERM")'
|
||||
# is a real-world example, at least on many systems.
|
||||
test_print_accept {p/c array_index("abcdef",2)} "= 99 'c'"
|
||||
gdb_test {p/c array_index("abcdef",2)} " = 99 'c'"
|
||||
|
||||
# Now, try that we can give names of file-local symbols which happen
|
||||
# to be unique, and have it still work
|
||||
|
|
Loading…
Reference in New Issue