forked from OSchip/llvm-project
10 lines
396 B
Common Lisp
10 lines
396 B
Common Lisp
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL1.2
|
|
|
|
void foo(read_only pipe int p);
|
|
// expected-warning@-1 {{type specifier missing, defaults to 'int'}}
|
|
// expected-error@-2 {{access qualifier can only be used for pipe and image type}}
|
|
// expected-error@-3 {{expected ')'}} expected-note@-3 {{to match this '('}}
|
|
|
|
// 'pipe' should be accepted as an identifier.
|
|
typedef int pipe;
|