This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] OpenCL datatypes test fixes
- From: Ken Werner <ken at linux dot vnet dot ibm dot com>
- To: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 16 Feb 2011 11:08:54 +0100
- Subject: Re: [patch] OpenCL datatypes test fixes
- References: <201102152101.p1FL1tt5009248@d06av02.portsmouth.uk.ibm.com>
On Tuesday, February 15, 2011 10:01:55 pm Ulrich Weigand wrote:
> Ken Werner wrote:
> > -gdb_test "whatis c2" "type = char \\\[2\\\]"
> > +gdb_test "whatis c2" "type = char2|char \\\[2\\\]"
>
> Don't we need some parentheses here (and everywere you've
> introduced alternatives via |)? Otherwise, it seems that
> this would stop working with the older compilers ...
Hi Ulrich,
Thanks for looking into this patch. Sometimes the GDB testsuite is a mystery
to me. This time it seems to work without parentheses:
old compiler:
whatis c2
type = char [2]
(gdb) PASS: gdb.opencl/datatypes.exp: whatis c2
new compiler:
whatis c2
type = char2
(gdb) PASS: gdb.opencl/datatypes.exp: whatis c2
Any suggestions?
Regards
Ken