[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Rewriter / rewrite-modern-qualified-type.mm
blob53e0d23ef22951388ef8541ab2428786b1ea170f
1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fms-extensions -rewrite-objc %s -o %t-modern-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D_Bool=bool -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp
3 // rdar://13562505
5 @protocol OS_dispatch_object @end
7 @interface NSObject @end
9 @protocol OS_dispatch_queue <OS_dispatch_object> @end typedef NSObject<OS_dispatch_queue> *dispatch_queue_t;
11 typedef id<OS_dispatch_queue> dispatch_queue_i;