[PATCH v4 12/13] test: basic c99 vla tests for C primitives
Tom Tromey
tromey@redhat.com
Wed Jan 15 21:39:00 GMT 2014
>>>>> "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
More information about the Gdb-patches
mailing list