[PATCH] D17436: [OpenCL] Add Sema checks for OpenCL 2.0 block
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 23 10:43:31 PST 2016
Anastasia added inline comments.
================
Comment at: test/SemaOpenCL/invalid-block.cl:17
@@ +16,3 @@
+void f2(BlkInt *BlockPtr) {
+ BlkInt B = ^int(int I) {return 1;};
+ BlkInt *P = &B; // expected-error {{invalid argument type 'BlkInt' (aka 'int (^)(int)') to unary expression}}
----------------
Khronos bug: https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15599
http://reviews.llvm.org/D17436
More information about the cfe-commits
mailing list