repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
2017-07-25 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
objc.dg
/
local-decl-1.m
blob
4a4bfdffe7e5ba63b374bad879001153e6701639
1
/* Test for hiding of ivars by local variables. */
2
/* Author: Ziemowit Laski <zlaski@apple.com>. */
3
/* { dg-do compile } */
4
5
@interface Sprite {
6
int a;
7
}
8
@end
9
10
Sprite *glob;
11
12
@interface blah
13
{
14
Sprite* sprite;
15
}
16
@end
17
18
@implementation blah
19
- (Sprite *)load
20
{
21
Sprite *sprite = 0;
22
Sprite *glob = 0; /* ok */
23
return sprite; /* { dg-warning "hides instance variable" } */
24
}
25
@end