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
/
conflict-nonfragile-abi2.m
blob
f8ab07eb0b1f63202499ea34951c1644d1f36981
1
// RUN: %clang_cc1 -verify -fsyntax-only -Wno-objc-root-class %s
2
// expected-no-diagnostics
3
4
int glob;
5
6
@interface I
7
@property int glob;
8
@property int p;
9
@property int le;
10
@property int l;
11
@property int ls;
12
@property int r;
13
@end
14
15
// Warning on future name lookup rule is removed.
16
@implementation I
17
- (int) Meth { return glob; } // no warning
18
@synthesize glob;
19
- (int) Meth1: (int) p {
20
extern int le;
21
int l = 1;
22
static int ls;
23
register int r;
24
p = le + ls + r;
25
return l;
26
}
27
@dynamic p;
28
@dynamic le;
29
@dynamic l;
30
@dynamic ls;
31
@dynamic r;
32
@end
33
34