1 | //RUN: %clang_cc1 -O0 -cl-std=CL2.0 -fsyntax-only -verify %s |
---|---|
2 | |
3 | kernel void B (global int *x) { |
4 | __attribute__((opencl_unroll_hint(42))) |
5 | if (x[0]) // expected-error {{OpenCL only supports 'opencl_unroll_hint' attribute on for, while, and do statements}} |
6 | x[0] = 15; |
7 | } |
8 | |
9 |