blob: a84d8bb610c07cc6517c9acee5919e3d0ba62ba4 [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)
Guy Benyei1b4fb3e2013-01-20 12:31:11 +000012}