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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
attributes
/
proto-attribute-1.mm
blob
a852a7a6c2fd66dbdc2dc63428e39eeab4d50c40
1
/* { dg-do compile } */
2
3
#include <objc/objc.h>
4
5
__attribute ((deprecated))
6
@protocol dep_proto
7
- (int) depprotomth;
8
@end
9
10
@interface obj <dep_proto> /* { dg-warning "is deprecated" } */
11
{
12
@public
13
int var;
14
}
15
- (int) mth;
16
@end
17
18
@implementation obj
19
- (int) mth { return var; }
20
- (int) depprotomth { return var + 1; }
21
@end