[PATCH] D82313: [OpenCL] Reject block arguments

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 23 10:10:29 PDT 2020


Anastasia added inline comments.


================
Comment at: clang/test/SemaOpenCL/invalid-block.cl:31
 typedef int (^bl_t)(void);
-bl_t f3(bl_t bl); // expected-error{{declaring function return value of type 'bl_t' (aka 'int (__generic ^const)(void)') is not allowed}}
+bl_t f3a(int);     // expected-error{{declaring function return value of type 'bl_t' (aka 'int (__generic ^const)(void)') is not allowed}}
+bl_t f3b(bl_t bl);
----------------
Can we add a test case with a block as a parameter of another block. :)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82313/new/

https://reviews.llvm.org/D82313





More information about the cfe-commits mailing list