blob: a5fc570e757ed593101539498680f9644a2dcbc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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}}
}
|