Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaOpenCL / array-init.cl
blob59424ff6d66446fe6561d43c71876aea23f6d089
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};