blob: aad441f35fd7a06fb796c4eedf57b46f52f5da17 [file] [log] [blame]
Guy Benyei1b4fb3e2013-01-20 12:31:11 +00001// 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 %opencl.event_t*,
8 foo(e);
David Blaikieea3e51d2015-06-29 17:29:50 +00009// CHECK: call {{.*}}void @foo(%opencl.event_t* %
Guy Benyei1b4fb3e2013-01-20 12:31:11 +000010 foo(0);
David Blaikieea3e51d2015-06-29 17:29:50 +000011// CHECK: call {{.*}}void @foo(%opencl.event_t* null)
Yaxun Liuc537c8a2016-05-20 17:18:16 +000012 foo((event_t)0);
13// CHECK: call {{.*}}void @foo(%opencl.event_t* null)
Guy Benyei1b4fb3e2013-01-20 12:31:11 +000014}