Debian Codegraph @

llvm-project/llvm/projects/opencl-clang/tests/Manual/testsuite/gline-tables-only.cl

raw
1 /* 'testsuite/gline-tables-only.cl' */
2
3 // RUN: %occ-cli %s --cl-options=-gline-tables-only %cfg_path --cl-device=%cl_device --output=%t.bc
4 // RUN: llvm-dis %t.bc -o - | FileCheck %s
5
6 // CHECK: !dbg !{{[0-9]+}}
7 // CHECK: !{{[0-9]+}} = !DILocation
8
9 int foo(__global int *input) {
10 *input += 5;
11
12 return 3;
13 }
14
15 __kernel void ocl_test_kernel(__global int *ocl_test_results) {
16 int a = foo(ocl_test_results);
17 }