[PATCH] D17437: [OpenCL] Add Sema checks for image and pipe

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 19 06:52:16 PST 2016


yaxunl added inline comments.

================
Comment at: test/SemaOpenCL/invalid-pipes-cl2.0.cl:9
@@ -8,1 +8,3 @@
 }
+void test4() {
+  pipe int p; // expected-error {{pipe can only be used as a function parameter}}
----------------
Do we have a test for diagnosing pipe type for OCL < 2.0 ?


http://reviews.llvm.org/D17437





More information about the cfe-commits mailing list