This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v4 12/13] test: basic c99 vla tests for C primitives


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]