Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 %s -verify -emit-llvm -o %t
      2 // pr7390
      3 
      4 void f(const SEL& v2) {}
      5 void g() {
      6   f(@selector(dealloc));
      7 
      8   SEL s = @selector(dealloc);
      9  SEL* ps = &s;
     10 
     11  @selector(dealloc) = s;  // expected-error {{expression is not assignable}}
     12 
     13  SEL* ps2 = &@selector(dealloc);
     14 }
     15