xref: /minix3/external/bsd/llvm/dist/clang/test/SemaOpenCL/unsupported.cl (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
1// RUN: %clang_cc1 -verify %s
2
3struct {
4  int a : 1; // expected-error {{bitfields are not supported in OpenCL}}
5};
6
7void no_vla(int n) {
8  int a[n]; // expected-error {{variable length arrays are not supported in OpenCL}}
9}
10