================
@@ -10,6 +10,7 @@ void h() {
   SEL* ps = &s;
 
   @selector(dealloc) = s;  // expected-error {{expression is not assignable}}
+  // expected-note@-1 {{add '*' to dereference it}}
----------------
Rajveer100 wrote:

Actually, it isn't valid in case of `@selector`, that's why I was thinking of 
potential solutions. 

Like one of the tests got ignored using 
`!E->getType()->isObjCObjectPointerType()`, similarly clang would have for 
selectors as well.


https://github.com/llvm/llvm-project/pull/94159
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to