From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/SemaObjCXX/instantiate-method-return.mm | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 clang/test/SemaObjCXX/instantiate-method-return.mm (limited to 'clang/test/SemaObjCXX/instantiate-method-return.mm') diff --git a/clang/test/SemaObjCXX/instantiate-method-return.mm b/clang/test/SemaObjCXX/instantiate-method-return.mm new file mode 100644 index 0000000..2a3ae32 --- /dev/null +++ b/clang/test/SemaObjCXX/instantiate-method-return.mm @@ -0,0 +1,26 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// PR7386 + +@class NSObject; + +class A; +template class V {}; + +@protocol Protocol +- (V)protocolMethod; +@end + + +@interface I +@end + + +@implementation I +- (void)randomMethod:(id)info { + V vec([self protocolMethod]); +} + +- (V)protocolMethod { + V va; return va; +} +@end -- cgit v1.2.3