[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Rewriter / rewrite-interface-locals.mm
blobef361051c19860ab1286639672a8fe4d8aca8817
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
3 // rdar://15143875
5 @class NSData, NSError;
7 @interface Foo
9 typedef void (^Callback)(NSData *data, NSError *error);
11 - (void)doSomething:(NSData *)data callback:(Callback)callback;
12 @end
14 @implementation Foo
16 - (void)doSomething:(NSData *)data callback:(Callback)callback {
17   callback(0, 0);
20 @end