================ @@ -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}} ---------------- Sirraide wrote:
AST visitors are rather heavy atm so I’d rather not do that... I think this is fine provided that `*@selector(dealloc) = s` is valid in Objective-C (as I said, I don’t know Objective-C...) 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