Detect read only for arguments with const qualifier.

- This will catch __global const *int allocations as read only.

Change-Id: I0d128ba7c31d476d1f144233e1c3dec370f9f550
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-08-01 09:18:56 +02:00
committed by sys_ocldev
parent 946243ea85
commit 926c7a2a97
2 changed files with 5 additions and 0 deletions

View File

@@ -409,6 +409,8 @@ TEST_F(KernelFromBinaryTests, givenArgumentDeclaredAsConstantWhenKernelIsCreated
auto pKernelInfo = pProgram->getKernelInfo("simple_kernel_6");
EXPECT_TRUE(pKernelInfo->kernelArgInfo[1].isReadOnly);
pKernelInfo = pProgram->getKernelInfo("simple_kernel_1");
EXPECT_TRUE(pKernelInfo->kernelArgInfo[0].isReadOnly);
}
TEST(PatchInfo, Constructor) {