blob: c3db9a7d00e5490539e94b80008d19b952e32012 [file] [log] [blame]
Fariborz Jahanian3f783a62010-06-17 21:45:48 +00001// RUN: %clang_cc1 %s -verify -emit-llvm -o %t
2// pr7390
3
4void f(const SEL& v2) {}
5void 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}