[PATCH] D16574: Bug 15685 - OpenCL 'char' is not signed

Igor Chesnokov via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 3 23:24:24 PST 2016


ichesnokov removed rL LLVM as the repository for this revision.
ichesnokov updated this revision to Diff 46877.
ichesnokov added a comment.

Patch improvements


http://reviews.llvm.org/D16574

Files:
  test/SemaOpenCL/char-must-be-signed.cl

Index: test/SemaOpenCL/char-must-be-signed.cl
===================================================================
--- test/SemaOpenCL/char-must-be-signed.cl
+++ test/SemaOpenCL/char-must-be-signed.cl
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 %s
+
+_Static_assert(sizeof(char) == 1, "In OpenCL char has to be 1 bytes length");
+_Static_assert((char)(0xFFu) < 0, "In OpenCL char type has to be signed.");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16574.46877.patch
Type: text/x-patch
Size: 397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160204/b0294038/attachment.bin>


More information about the cfe-commits mailing list