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
/
generic-selection.m
blob
fa367dcf9a049ac6fadafb2e32b14beeb4494a82
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// expected-no-diagnostics
3
4
__attribute__((objc_root_class))
5
@interface Root {
6
Class isa;
7
}
8
@end
9
10
@interface A
11
@property (strong) id x;
12
@end
13
14
void test0(A *a) {
15
int kind = _Generic(a.x, id : 0, int : 1, float : 2);
16
}