Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Rewriter / rewrite-protocol-property.mm
blobe5559f7e2262c9182035a0f55930cccfb3cfa1d0
1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -Did="void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
4 @class NSString;
5 @interface NSObject @end
7 @protocol P
8 @property (retain) NSString* test;
9 @end
12 @interface A : NSObject <P> {
13         NSString* _test;
15 @end
18 @implementation A
19 @synthesize test=_test;
20 @end