Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Rewriter / rewrite-interface-locals.mm
blob513c435d97abff833be893503c0da74c0d0b1f3d
1 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
4 @class NSData, NSError;
6 @interface Foo
8 typedef void (^Callback)(NSData *data, NSError *error);
10 - (void)doSomething:(NSData *)data callback:(Callback)callback;
11 @end
13 @implementation Foo
15 - (void)doSomething:(NSData *)data callback:(Callback)callback {
16   callback(0, 0);
19 @end