blob: f148b3395d9364ce582ee5d68776bc1ee3d242e3 [file] [log] [blame]
Douglas Gregor5e6fcd42011-02-08 02:14:35 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3struct X {
4 void f() const;
5 ~X();
6};
7
8@interface A {
9 X x_;
10}
11
12- (const X&)x;
13- (void)setx:(const X&)other;
14@end
15
16@implementation A
17
18- (const X&)x { return x_; }
19- (void)setx:(const X&)other { x_ = other; }
20- (void)method {
21 self.x.f();
22}
23@end
24