1 // RUN: %clang_cc1 -verify -fsyntax-only -fobjc-arc -fblocks %s
3 #define SWIFT_ASYNC_NAME(name) __attribute__((__swift_async_name__(name)))
5 typedef int (^CallbackTy)(void);
9 virtual void doSomethingWithCallback(CallbackTy callback) SWIFT_ASYNC_NAME("doSomething()");
11 // expected-warning@+1 {{too few parameters in the signature specified by the '__swift_async_name__' attribute (expected 1; got 0)}}
12 virtual void doSomethingWithCallback(int x, CallbackTy callback) SWIFT_ASYNC_NAME("doSomething()");