[cfe-commits] r148028 - in /cfe/trunk: lib/Sema/SemaExprCXX.cpp lib/Sema/SemaTemplate.cpp test/SemaObjCXX/properties.mm

Eli Friedman eli.friedman at gmail.com
Thu Jan 12 12:04:27 PST 2012


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?

-Eli




More information about the cfe-commits mailing list