repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaObjCXX
/
sel-address.mm
blob
e5661af341691c5b88833f84c1d7c73a68def5f1
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// pr7390
3
4
void f(const SEL& v2) {}
5
void g(SEL* _Nonnull);
6
void 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
g(&(@selector(foo)));
19
}
20