llvm-project/llvm/projects/opencl-clang/tests/Manual/testsuite/optionEx-with-S.cl
raw| 1 | // RUN: %occ-cli %s --cl-options-ex=-I/tmp/OCL-Sample %cfg_path --cl-device=%cl_device --output=%t.bc |
| 2 | // RUN: llvm-dis %t.bc -o - | FileCheck %s |
| 3 | |
| 4 | // Regression test for the following bug. |
| 5 | // If current working directory contains "-S", common clang produced no output |
| 6 | // CPU runtime passes current working directory along with -I flag to cclang |
| 7 | // via pszOptionsEx argument of Compile method. |
| 8 | |
| 9 | __kernel void test() {} |
| 10 | // CHECK: void @test() |