[PATCH] D17437: [OpenCL] Add Sema checks for types

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 23 08:49:05 PST 2016


Anastasia accepted this revision.

================
Comment at: test/SemaOpenCL/sampler_t.cl:13
@@ -12,2 +12,3 @@
   foo(5); // expected-error {{sampler_t variable required - got 'int'}}
+  sampler_t sa[] = {argsmp,const_smp}; // expected-error {{array of 'sampler_t' type is invalid in OpenCL}}
 }
----------------
put whitespace after ,


http://reviews.llvm.org/D17437





More information about the cfe-commits mailing list