Guy Benyei | 1b4fb3e | 2013-01-20 12:31:11 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -o - -O0 | FileCheck %s |
| 2 | |
| 3 | void foo(event_t evt); |
| 4 | |
| 5 | void kernel ker() { |
| 6 | event_t e; |
| 7 | // CHECK: alloca %opencl.event_t*, |
| 8 | foo(e); |
David Blaikie | ea3e51d | 2015-06-29 17:29:50 +0000 | [diff] [blame] | 9 | // CHECK: call {{.*}}void @foo(%opencl.event_t* % |
Guy Benyei | 1b4fb3e | 2013-01-20 12:31:11 +0000 | [diff] [blame] | 10 | foo(0); |
David Blaikie | ea3e51d | 2015-06-29 17:29:50 +0000 | [diff] [blame] | 11 | // CHECK: call {{.*}}void @foo(%opencl.event_t* null) |
Yaxun Liu | c537c8a | 2016-05-20 17:18:16 +0000 | [diff] [blame] | 12 | foo((event_t)0); |
| 13 | // CHECK: call {{.*}}void @foo(%opencl.event_t* null) |
Guy Benyei | 1b4fb3e | 2013-01-20 12:31:11 +0000 | [diff] [blame] | 14 | } |