minix/external/bsd/llvm/dist/clang/test/SemaOpenCL/unsupported.cl
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

9 lines
225 B
Common Lisp

// RUN: %clang_cc1 -verify %s
struct {
int a : 1; // expected-error {{bitfields are not supported in OpenCL}}
};
void no_vla(int n) {
int a[n]; // expected-error {{variable length arrays are not supported in OpenCL}}
}