bolt/deps/llvm-18.1.8/clang/test/CodeGenOpenCL/event_t.cl

15 lines
297 B
Common Lisp
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 %s -emit-llvm -o - -O0 | FileCheck %s
void foo(event_t evt);
void kernel ker() {
event_t e;
// CHECK: alloca ptr,
foo(e);
// CHECK: call {{.*}}void @foo(ptr %
foo(0);
// CHECK: call {{.*}}void @foo(ptr null)
foo((event_t)0);
// CHECK: call {{.*}}void @foo(ptr null)
}