• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2// pr7390
3
4void f(const SEL& v2) {}
5void g(SEL* _Nonnull);
6void h() {
7  f(@selector(dealloc));
8
9  SEL s = @selector(dealloc);
10  SEL* ps = &s;
11
12  @selector(dealloc) = s;  // expected-error {{expression is not assignable}}
13
14  SEL* ps2 = &@selector(dealloc);
15
16  // Shouldn't crash.
17  g(&@selector(foo));
18}
19
20