summaryrefslogtreecommitdiffstats
path: root/test/SemaOpenCL/unsupported.cl
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaOpenCL/unsupported.cl')
-rw-r--r--test/SemaOpenCL/unsupported.cl9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaOpenCL/unsupported.cl b/test/SemaOpenCL/unsupported.cl
new file mode 100644
index 0000000..bb9da4b
--- /dev/null
+++ b/test/SemaOpenCL/unsupported.cl
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -verify %s
+
+struct {
+ int a : 1; // expected-error {{bitfields are not supported in OpenCL}}
+};
+
+void no_vla(int n) {
+ int a[n]; // expected-error {{variable length arrays are not supported in OpenCL}}
+}
OpenPOWER on IntegriCloud