1 // RUN
: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std
=CL2.0
2 // expected-no-diagnostics
4 __kernel void k1
(queue_t q1
, queue_t q2
) {
5 queue_t q
[] = {q1
, q2
};
8 __kernel void k2
(read_only pipe int p
) {
9 reserve_id_t i1
= reserve_read_pipe
(p, 1);
10 reserve_id_t i2
= reserve_read_pipe
(p, 1);
11 reserve_id_t i
[] = {i1
, i2
};
14 event_t create_event
(void);
15 __kernel void k3
(void) {
16 event_t e1
= create_event
();
17 event_t e2
= create_event
();
18 event_t e
[] = {e1
, e2
};