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.");


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.");
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to