}
if [support_complex_tests] {
- setup_kfail_for_target gdb/12798 "x86_64-*-*"
gdb_test "p t_float_complex_values(fc1, fc2)" " = 1"
gdb_test "p t_float_complex_values(fc3, fc4)" " = 0"
- setup_kfail_for_target gdb/12800 "x86_64-*-*"
gdb_test "p t_float_complex_many_args(fc1, fc2, fc3, fc4, fc1, fc2, fc3, fc4, fc1, fc2, fc3, fc4, fc1, fc2, fc3, fc4)" " = 1"
gdb_test "p t_float_complex_many_args(fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1)" " = 0"
- setup_kfail_for_target gdb/12798 "x86_64-*-*"
gdb_test "p t_double_complex_values(dc1, dc2)" " = 1"
gdb_test "p t_double_complex_values(dc3, dc4)" " = 0"
- setup_kfail_for_target gdb/12800 "x86_64-*-*"
gdb_test "p t_double_complex_many_args(dc1, dc2, dc3, dc4, dc1, dc2, dc3, dc4, dc1, dc2, dc3, dc4, dc1, dc2, dc3, dc4)" " = 1"
gdb_test "p t_double_complex_many_args(dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1)" " = 0"
if [support_complex_tests] {
- setup_kfail_for_target gdb/12796 "x86_64-*-*"
gdb_test "p t_structs_fc(struct_val1)" ".*= 3 \\+ 3 \\* I" \
"call inferior func with struct - returns float _Complex"
setup_kfail_for_target gdb/12783 "i?86-*-*"
- setup_kfail_for_target gdb/12796 "x86_64-*-*"
gdb_test "p t_structs_dc(struct_val1)" ".*= 4 \\+ 4 \\* I" \
"call inferior func with struct - returns double _Complex"
setup_kfail_for_target gdb/12783 "i?86-*-*"
- setup_kfail_for_target gdb/12796 "x86_64-*-*"
gdb_test "p t_structs_ldc(struct_val1)" "= 5 \\+ 5 \\* I" \
"call inferior func with struct - returns long double _Complex"
}