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