mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-22 21:15:40 -04:00

The latter agrees with most existing diagnostics and the C and C++ standards. Differential Revision: https://reviews.llvm.org/D26530 llvm-svn: 290159
14 lines
334 B
Common Lisp
14 lines
334 B
Common Lisp
// RUN: %clang_cc1 -verify %s
|
|
|
|
struct {
|
|
int a : 1; // expected-error {{bit-fields are not supported in OpenCL}}
|
|
};
|
|
|
|
void no_vla(int n) {
|
|
int a[n]; // expected-error {{variable length arrays are not supported in OpenCL}}
|
|
}
|
|
|
|
void no_logxor(int n) {
|
|
int logxor = n ^^ n; // expected-error {{^^ is a reserved operator in OpenCL}}
|
|
}
|