[cfe-commits] r148028 - in /cfe/trunk: lib/Sema/SemaExprCXX.cpp lib/Sema/SemaTemplate.cpp test/SemaObjCXX/properties.mm
Douglas Gregor
dgregor at apple.com
Fri Jan 13 09:01:50 PST 2012
On Jan 12, 2012, at 12:04 PM, Eli Friedman wrote:
> On Thu, Jan 12, 2012 at 8:11 AM, Douglas Gregor <dgregor at apple.com> wrote:
>> Modified: cfe/trunk/test/SemaObjCXX/properties.mm
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/properties.mm?rev=148028&r1=148027&r2=148028&view=diff
>> ==============================================================================
>> --- cfe/trunk/test/SemaObjCXX/properties.mm (original)
>> +++ cfe/trunk/test/SemaObjCXX/properties.mm Thu Jan 12 10:11:24 2012
>> @@ -41,11 +41,20 @@
>> char *heaparray = new char[t.length];
>> }
>>
>> - at interface Test4
>> -- (X&) prop;
>> +// <rdar://problem/10672501>
>> +namespace std {
>> + template<typename T> void count();
>> +}
>> +
>> + at interface Test4 {
>> + at public
>> + int count;
>> +}
>> + at property int count;
>> @end
>> -void test4(Test4 *t) {
>> - (void)const_cast<const X&>(t.prop);
>> - (void)dynamic_cast<X&>(t.prop);
>> - (void)reinterpret_cast<int&>(t.prop);
>> +
>> +void test4(Test4* t4) {
>> + if (t4.count < 2) { }
>> + if (t4->count < 2) { }
>> }
>> +
>
> Err, did you delete my test intentionally?
I think Subversion hated your test; it somehow decided to replace yours with mine during "svn update"'s merge. Reinstated in r148118, sorry!
- Doug
More information about the cfe-commits
mailing list