forked from OSchip/llvm-project
Add some more tests for reference binding of Objective-C objects
llvm-svn: 110514
This commit is contained in:
parent
8b2d2fe234
commit
22da8ebafc
|
@ -39,6 +39,11 @@ void f4(NSString &tmpstr) {
|
|||
@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 @@ void f6(baz* x) {
|
|||
f5b(*x);
|
||||
f5c(*x);
|
||||
f5d(*x);
|
||||
(void)((foo&)*x);
|
||||
(void)((foo&)*x);
|
||||
f5(ToBar());
|
||||
f5b(ToBar());
|
||||
f5c(ToBar());
|
||||
f5d(ToBar());
|
||||
(void)((foo&)ToBar());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue