Joey Gouly | 617bb31 | 2013-01-17 17:35:00 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify %s |
2 | |||||
3 | struct { | ||||
4 | int a : 1; // expected-error {{bitfields are not supported in OpenCL}} | ||||
5 | }; | ||||
6 | |||||
7 | void no_vla(int n) { | ||||
8 | int a[n]; // expected-error {{variable length arrays are not supported in OpenCL}} | ||||
9 | } |