26 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s2// expected-no-diagnostics3struct HasValueType {4 typedef int value_type;5};6 7__attribute__((objc_root_class))8@interface Foo9{10@protected11 HasValueType foo;12}13 14@property (nonatomic) HasValueType bar;15@end16 17@implementation Foo18@synthesize bar;19 20- (void)test {21 decltype(foo)::value_type vt1;22 decltype(self->foo)::value_type vt2;23 decltype(self.bar)::value_type vt3;24}25@end26