* gdb.cp/templates.exp (test_template_args): Allow "struct".
This commit is contained in:
parent
60430eff89
commit
5e1617b13f
@ -1,3 +1,7 @@
|
|||||||
|
2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.cp/templates.exp (test_template_args): Allow "struct".
|
||||||
|
|
||||||
2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
|
2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* gdb.cp/templates.cc (Empty, FunctionArg): New classes.
|
* gdb.cp/templates.cc (Empty, FunctionArg): New classes.
|
||||||
|
@ -200,10 +200,10 @@ proc test_template_args {} {
|
|||||||
|
|
||||||
set empty_re "Empty *<void *\\(FunctionArg *<int>\\)>"
|
set empty_re "Empty *<void *\\(FunctionArg *<int>\\)>"
|
||||||
gdb_test "ptype empty" \
|
gdb_test "ptype empty" \
|
||||||
"type = class $empty_re {.*<no data fields>.*}"
|
"type = (struct|class) $empty_re {.*<no data fields>.*}"
|
||||||
|
|
||||||
gdb_test "ptype arg" \
|
gdb_test "ptype arg" \
|
||||||
"type = class FunctionArg<int> {.*int method\\($empty_re \\&\\);.*}"
|
"type = (struct|class) FunctionArg<int> {.*int method\\($empty_re \\&\\);.*}"
|
||||||
}
|
}
|
||||||
|
|
||||||
proc do_tests {} {
|
proc do_tests {} {
|
||||||
|
Loading…
Reference in New Issue
Block a user