blob: a5fc570e757ed593101539498680f9644a2dcbc0 [file] [log] [blame]
Joey Gouly1d58cdb2013-01-17 17:35:00 +00001// RUN: %clang_cc1 -verify %s
2
3struct {
Chandler Carruthcbe1eba2016-12-20 02:43:58 +00004 int a : 1; // expected-error {{bit-fields are not supported in OpenCL}}
Joey Gouly1d58cdb2013-01-17 17:35:00 +00005};
6
7void no_vla(int n) {
8 int a[n]; // expected-error {{variable length arrays are not supported in OpenCL}}
9}
Anastasia Stulova735c6cd2016-02-03 15:17:14 +000010
11void no_logxor(int n) {
12 int logxor = n ^^ n; // expected-error {{^^ is a reserved operator in OpenCL}}
13}