[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / CodeGenOpenCL / event_t.cl
blobb94332b2861973778554096565d475240a2e0172
1 // RUN: %clang_cc1 -no-opaque-pointers %s -emit-llvm -o - -O0 | FileCheck %s
3 void foo(event_t evt);
5 void kernel ker() {
6 event_t e;
7 // CHECK: alloca %opencl.event_t*,
8 foo(e);
9 // CHECK: call {{.*}}void @foo(%opencl.event_t* %
10 foo(0);
11 // CHECK: call {{.*}}void @foo(%opencl.event_t* null)
12 foo((event_t)0);
13 // CHECK: call {{.*}}void @foo(%opencl.event_t* null)