This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v4 12/13] test: basic c99 vla tests for C primitives
- From: Tom Tromey <tromey at redhat dot com>
- To: Sanimir Agovic <sanimir dot agovic at intel dot com>
- Cc: palves at redhat dot com, xdje42 at gmail dot com, gdb-patches at sourceware dot org, keven dot boell at intel dot com
- Date: Wed, 15 Jan 2014 14:39:06 -0700
- Subject: Re: [PATCH v4 12/13] test: basic c99 vla tests for C primitives
- Authentication-results: sourceware.org; auth=none
- References: <1387282678-3847-1-git-send-email-sanimir dot agovic at intel dot com> <1387282678-3847-13-git-send-email-sanimir dot agovic at intel dot com>
>>>>> "Sanimir" == Sanimir Agovic <sanimir.agovic@intel.com> writes:
Sanimir> +gdb_test "print sizeof (++int_vla\[0\])" "\\$\\d+ = ${sizeof_int}" \
Sanimir> + "print sizeof (++int_vla\[0\])"
Sanimir> +gdb_test "print int_vla\[0\]" "\\$\\d+ = 42" \
Sanimir> + "print int_vla\[0\] - sizeof no side effects"
I didn't see any tests for the case where there should be a side effect.
Tom