blob: a39a61b9542a07c5baaca1d8b61f63be703f6941 [file] [log] [blame]
Joey Gouly1d58cdb2013-01-17 17:35:00 +00001// 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}
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}