2013-01-20 20:31:11 +08:00
|
|
|
// 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);
|
2015-06-30 01:29:50 +08:00
|
|
|
// CHECK: call {{.*}}void @foo(%opencl.event_t* %
|
2013-01-20 20:31:11 +08:00
|
|
|
foo(0);
|
2016-05-21 01:18:16 +08:00
|
|
|
// CHECK: call {{.*}}void @foo(%opencl.event_t* null)
|
|
|
|
foo((event_t)0);
|
2015-06-30 01:29:50 +08:00
|
|
|
// CHECK: call {{.*}}void @foo(%opencl.event_t* null)
|
2013-01-20 20:31:11 +08:00
|
|
|
}
|