summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaOpenCL/invalid-pipes-cl2.0.cl
blob: c8e582e6e879516ac29ac8ff28e7ad44bea86962 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL2.0

void test1(pipe int *p){// expected-error {{pipes packet types cannot be of reference type}}
}
void test2(pipe p){// expected-error {{missing actual type specifier for pipe}}
}
void test3(int pipe p){// expected-error {{cannot combine with previous 'int' declaration specifier}}
}
void test4() {
  pipe int p; // expected-error {{type 'pipe int' can only be used as a function parameter}}
}
OpenPOWER on IntegriCloud