You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
349 B
15 lines
349 B
4 months ago
|
// RUN: %clang_cc1 %s -emit-llvm -o - -O0 | FileCheck %s
|
||
|
|
||
|
void foo(event_t evt);
|
||
|
|
||
|
void kernel ker() {
|
||
|
event_t e;
|
||
|
// CHECK: alloca %opencl.event_t*,
|
||
|
foo(e);
|
||
|
// CHECK: call {{.*}}void @foo(%opencl.event_t* %
|
||
|
foo(0);
|
||
|
// CHECK: call {{.*}}void @foo(%opencl.event_t* null)
|
||
|
foo((event_t)0);
|
||
|
// CHECK: call {{.*}}void @foo(%opencl.event_t* null)
|
||
|
}
|