forked from OSchip/llvm-project
Add an XFAIL test to demonstrate references in Obj-C++, this currently crashes.
llvm-svn: 72923
This commit is contained in:
parent
184cb4123e
commit
635b8050c4
|
@ -0,0 +1,27 @@
|
|||
// RUN: clang-cc -verify -emit-llvm -o %t %s
|
||||
// XFAIL
|
||||
|
||||
// Test reference binding.
|
||||
|
||||
typedef struct {
|
||||
int f0;
|
||||
int f1;
|
||||
} T;
|
||||
|
||||
@interface A
|
||||
@property (assign) T p0;
|
||||
@property (assign) T& p1;
|
||||
@end
|
||||
|
||||
int f0(const T& t) {
|
||||
return t.f0;
|
||||
}
|
||||
|
||||
int f1(A *a) {
|
||||
return f0(a.p0);
|
||||
}
|
||||
|
||||
int f2(A *a) {
|
||||
return f0(a.p1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue