Debian Codegraph @

llvm-project/llvm/projects/opencl-clang/tests/Manual/testsuite/getkernelarginfo-wrong-binaries.cl

raw
1 /* 'testsuite/getkernelarginfo-wrong-binaries.cl' */
2
3 // RUN: %occ-cli --method=GetKernelArgInfo --binary-file %s --kernel-name
4 // ocl_test_kernel XFAIL: *
5 //
6 // This is a negative test for CORC-833.
7 // CClang's GetKernelArgInfo should return valid error code instead of terminate
8 // application when input binaries is invalid.
9 //
10
11 int foo(__global int *input) {
12 *input += 5;
13
14 return 3;
15 }
16
17 __kernel void ocl_test_kernel(__global int *ocl_test_results) {
18 int a = foo(ocl_test_results);
19 }