[cfe-commits] r110514 - /cfe/trunk/test/SemaObjCXX/references.mm
Douglas Gregor
dgregor at apple.com
Sat Aug 7 04:56:45 PDT 2010
Author: dgregor
Date: Sat Aug 7 06:56:45 2010
New Revision: 110514
URL: http://llvm.org/viewvc/llvm-project?rev=110514&view=rev
Log:
Add some more tests for reference binding of Objective-C objects
Modified:
cfe/trunk/test/SemaObjCXX/references.mm
Modified: cfe/trunk/test/SemaObjCXX/references.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/references.mm?rev=110514&r1=110513&r2=110514&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjCXX/references.mm (original)
+++ cfe/trunk/test/SemaObjCXX/references.mm Sat Aug 7 06:56:45 2010
@@ -39,6 +39,11 @@
@interface foo<P1> {} @end
@interface bar : foo <P1, P2> {} @end
typedef bar baz;
+
+struct ToBar {
+ operator bar&() const;
+};
+
void f5(foo&);
void f5b(foo<P1>&);
void f5c(foo<P2>&);
@@ -48,5 +53,10 @@
f5b(*x);
f5c(*x);
f5d(*x);
- (void)((foo&)*x);
+ (void)((foo&)*x);
+ f5(ToBar());
+ f5b(ToBar());
+ f5c(ToBar());
+ f5d(ToBar());
+ (void)((foo&)ToBar());
}
More information about the cfe-commits
mailing list