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
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
selector-error.m
blob
f59dec812b702e02676ed0d22b7155930a401844
1
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2
3
@interface Foo
4
- (char*) foo;
5
- (void) bar;
6
@end
7
8
@implementation Foo
9
- (void) bar
10
{
11
}
12
13
- (char*) foo
14
{
15
char* a,b,c;
16
a = (char*)@selector(bar); // expected-error {{cannot type cast @selector expression}}
17
return (char*)@selector(bar); // expected-error {{cannot type cast @selector expression}}
18
}
19
@end
20