[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / SemaObjCXX / sel-address.mm
blobe5661af341691c5b88833f84c1d7c73a68def5f1
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // pr7390
4 void f(const SEL& v2) {}
5 void g(SEL* _Nonnull);
6 void h() {
7   f(@selector(dealloc));
9   SEL s = @selector(dealloc);
10   SEL* ps = &s;
12   @selector(dealloc) = s;  // expected-error {{expression is not assignable}}
14   SEL* ps2 = &@selector(dealloc);
16   // Shouldn't crash.
17   g(&@selector(foo));
18   g(&(@selector(foo)));