diff options
Diffstat (limited to 'test/CodeGenOpenCL/event_t.cl')
-rw-r--r-- | test/CodeGenOpenCL/event_t.cl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGenOpenCL/event_t.cl b/test/CodeGenOpenCL/event_t.cl new file mode 100644 index 0000000..ddf12a9 --- /dev/null +++ b/test/CodeGenOpenCL/event_t.cl @@ -0,0 +1,12 @@ +// 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) +} |