1// RUN: %clang_cc1 -verify -fsyntax-only -fobjc-arc -fblocks %s
2
3#define SWIFT_ASYNC_NAME(name) __attribute__((__swift_async_name__(name)))
4
5typedef int (^CallbackTy)(void);
6
7class CXXClass {
8public:
9  virtual void doSomethingWithCallback(CallbackTy callback) SWIFT_ASYNC_NAME("doSomething()");
10
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()");
13};
14