OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
In gcc/objc/:
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
enhanced-proto-1.mm
1
/* Test use of @optional/@required keywords in @protocol class. */
2
/* { dg-do compile } */
3
4
@protocol MyProto1
5
@optional
6
- (void) FOO;
7
@optional
8
- (void) FOO;
9
@required
10
- (void) REQ;
11
@optional
12
@end
13
14
@protocol MyProto2 <MyProto1>
15
- (void) FOO2;
16
@optional
17
- (void) FOO3;
18
@end