Fariborz Jahanian | d426662 | 2010-06-16 18:56:04 +0000 | [diff] [blame] | 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 |