r192612 - Lit tests for Microsoft C++ record layout.

Warren Hunt whunt at google.com
Mon Oct 14 17:04:16 PDT 2013


They're just markers.  I have a little test harness that prints all of the
bytes of a record and these make it very easy to read.  They're not
relevant to being tested in lit and can be removed.  They're vestiges when
turning my layout tests into lit tests and I was lazy and didn't remove
them.  I may someday.

-Warren


On Mon, Oct 14, 2013 at 4:54 PM, Richard Smith <richard at metafoo.co.uk>wrote:

> 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/c89329e1/attachment.html>


More information about the cfe-commits mailing list