r192612 - Lit tests for Microsoft C++ record layout.
Richard Smith
richard at metafoo.co.uk
Mon Oct 14 16:54:00 PDT 2013
On Mon, Oct 14, 2013 at 4:36 PM, Sean Silva <silvas at purdue.edu> wrote:
> +struct A4 {
> + int a;
> + A4() : a(0xf00000a4) {}
>
> Out of curiosity, is there a hidden meaning for these hex constants? They
> seem to have some sort of pattern.
>
Note that the last couple of hex digits are the name of the class
containing the member. This makes it easy to see how a class was laid out
by dumping the contents of an instance of it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131014/3b202513/attachment.html>
More information about the cfe-commits
mailing list