Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjCXX / decltype.mm
blob9c4ac16c93f0dcff867be528363ba6cd61133eb3
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 // expected-no-diagnostics
3 struct HasValueType {
4   typedef int value_type;
5 };
7 __attribute__((objc_root_class))
8 @interface Foo
10 @protected
11     HasValueType foo;
14 @property (nonatomic) HasValueType bar;
15 @end
17 @implementation Foo
18 @synthesize bar;
20 - (void)test {
21   decltype(foo)::value_type vt1;
22   decltype(self->foo)::value_type vt2;
23   decltype(self.bar)::value_type vt3;
25 @end