mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 07:39:01 +00:00
Re-enabling narrowing errors (#1144)
Fixes narrowing conversion build errors in test_common Removing disable of narrowing errors in main CMakeLists.txt and moving it down to specific test_conformance suite's CMakeLists.txt where there are many more build errors revealed from this fix. Fixes a few simple issues under test_conformance in the process. Contributes #787 Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com> --------- Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
This commit is contained in:
@@ -118,7 +118,7 @@ TEST_SPIRV_FUNC(op_copy_struct_int_float_simple)
|
||||
|
||||
TEST_SPIRV_FUNC(op_copy_struct_int_char_simple)
|
||||
{
|
||||
AbstractStruct2<int, char> value = {2100483600, 128};
|
||||
AbstractStruct2<int, char> value = { 2100483600, (char)128 };
|
||||
std::vector<AbstractStruct2<int, char> > results(256, value);
|
||||
return test_copy(deviceID, context, queue, "copy_struct_int_char_simple", results);
|
||||
}
|
||||
@@ -128,7 +128,7 @@ TEST_SPIRV_FUNC(op_copy_struct_struct_simple)
|
||||
typedef AbstractStruct2<int, char> CustomType1;
|
||||
typedef AbstractStruct2<cl_int2, CustomType1> CustomType2;
|
||||
|
||||
CustomType1 value1 = {2100483600, 128};
|
||||
CustomType1 value1 = { 2100483600, (char)128 };
|
||||
cl_int2 intvals = { { 2100480000, 2100480000 } };
|
||||
CustomType2 value2 = {intvals, value1};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user