This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/3] gdb/testsuite/gdb.cp: Fix tests for ARM C++ ABI.
- From: Tom Tromey <tromey at redhat dot com>
- To: Will Newton <will dot newton at linaro dot org>
- Cc: gdb-patches at sourceware dot org, patches at linaro dot org
- Date: Wed, 05 Jun 2013 09:52:37 -0600
- Subject: Re: [PATCH 2/3] gdb/testsuite/gdb.cp: Fix tests for ARM C++ ABI.
- References: <51AF143F dot 8000205 at linaro dot org>
>>>>> "Will" == Will Newton <will.newton@linaro.org> writes:
Will> The ARM C++ ABI defines constructors and destructors to return
Will> pointers to this. The C++ tests that check the types of constructors
Will> and destructors expect a return type of void. Conditionalize these
Will> tests so they pass on ARM.
I think conditionalizing is fine, but I was curious about the results:
Will> + gdb_test "ptype t3::~t3" "type = void \\*\\(t3 \\* const\\)" \
Why does the destructor return 'void *' here but not elsewhere?
Tom