xref: /aosp_15_r20/external/clang/test/CodeGenOpenCL/event_t.cl (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang_cc1 %s -emit-llvm -o - -O0 | FileCheck %s
2*67e74705SXin Li
3*67e74705SXin Livoid foo(event_t evt);
4*67e74705SXin Li
5*67e74705SXin Livoid kernel ker() {
6*67e74705SXin Li  event_t e;
7*67e74705SXin Li// CHECK: alloca %opencl.event_t*,
8*67e74705SXin Li  foo(e);
9*67e74705SXin Li// CHECK: call {{.*}}void @foo(%opencl.event_t* %
10*67e74705SXin Li  foo(0);
11*67e74705SXin Li// CHECK: call {{.*}}void @foo(%opencl.event_t* null)
12*67e74705SXin Li  foo((event_t)0);
13*67e74705SXin Li// CHECK: call {{.*}}void @foo(%opencl.event_t* null)
14*67e74705SXin Li}
15