[RISCV] Rename a lambda to have plural nouns to reflect that it contains a loop. NFC
[llvm-project.git] / clang / test / SemaObjCXX / attr-swift_name-cxx.mm
blob658dbfff185ca9d1bc6a1418a6b1e375cf602426
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);
7 class CXXClass {
8 public:
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()");