Joey Gouly | 1d58cdb | 2013-01-17 17:35:00 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify %s |
| 2 | |
| 3 | struct { |
Chandler Carruth | cbe1eba | 2016-12-20 02:43:58 +0000 | [diff] [blame] | 4 | int a : 1; // expected-error {{bit-fields are not supported in OpenCL}} |
Joey Gouly | 1d58cdb | 2013-01-17 17:35:00 +0000 | [diff] [blame] | 5 | }; |
| 6 | |
| 7 | void no_vla(int n) { |
| 8 | int a[n]; // expected-error {{variable length arrays are not supported in OpenCL}} |
| 9 | } |
Anastasia Stulova | 735c6cd | 2016-02-03 15:17:14 +0000 | [diff] [blame] | 10 | |
| 11 | void no_logxor(int n) { |
| 12 | int logxor = n ^^ n; // expected-error {{^^ is a reserved operator in OpenCL}} |
| 13 | } |