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