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 <[email protected]>wrote:

> On Mon, Oct 14, 2013 at 4:36 PM, Sean Silva <[email protected]> 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.
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to