repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git]
/
test
/
SemaObjCXX
/
instantiate-method-return.mm
blob
b8ba4af09222322a566d94e3edf83ebd9cdb12cd
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// PR7386
3
4
@class NSObject;
5
6
class A;
7
template<class T> class V {};
8
9
@protocol Protocol
10
- (V<A*>)protocolMethod;
11
@end
12
13
14
@interface I<Protocol>
15
@end
16
17
18
@implementation I
19
- (void)randomMethod:(id)info {
20
V<A*> vec([self protocolMethod]);
21
}
22
23
- (V<A*>)protocolMethod {
24
V<A*> va; return va;
25
}
26
@end