diff options
Diffstat (limited to 'test/SemaObjCXX/arc-templates.mm')
-rw-r--r-- | test/SemaObjCXX/arc-templates.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaObjCXX/arc-templates.mm b/test/SemaObjCXX/arc-templates.mm index 97854dff8c1a..2a7d11f9d1f9 100644 --- a/test/SemaObjCXX/arc-templates.mm +++ b/test/SemaObjCXX/arc-templates.mm @@ -102,8 +102,8 @@ int check_make_weak2[is_same<make_weak<__autoreleasing id>::type, __weak id>::va template<typename T> struct make_weak_fail { typedef T T_type; - typedef __weak T_type type; // expected-error{{the type 'T_type' (aka '__weak id') is already explicitly ownership-qualified}} \ - // expected-error{{the type 'T_type' (aka '__strong id') is already explicitly ownership-qualified}} + typedef __weak T_type type; // expected-error{{the type 'make_weak_fail<__weak id>::T_type' (aka '__weak id') is already explicitly ownership-qualified}} \ + // expected-error{{the type 'make_weak_fail<id>::T_type' (aka '__strong id') is already explicitly ownership-qualified}} }; int check_make_weak_fail0[is_same<make_weak_fail<__weak id>::type, __weak id>::value? 1 : -1]; // expected-note{{in instantiation of template class 'make_weak_fail<__weak id>' requested here}} |