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