1 // RUN: %clang_cc1 %s -fopenacc -verify
6 #pragma acc parallel vector_length(1)
8 #pragma acc kernels vector_length(1)
11 // expected-error@+1{{OpenACC 'vector_length' clause is not valid on 'serial' directive}}
12 #pragma acc serial vector_length(1)
15 struct NotConvertible
{} NC
;
16 // expected-error@+1{{OpenACC clause 'vector_length' requires expression of integer type ('struct NotConvertible' invalid)}}
17 #pragma acc parallel vector_length(NC)
20 #pragma acc kernels vector_length(getS())
23 struct Incomplete
*SomeIncomplete
;
25 // expected-error@+1{{OpenACC clause 'vector_length' requires expression of integer type ('struct Incomplete' invalid)}}
26 #pragma acc kernels vector_length(*SomeIncomplete)
31 #pragma acc kernels vector_length(SomeE)
34 // expected-error@+1{{OpenACC 'vector_length' clause is not valid on 'loop' directive}}
35 #pragma acc loop vector_length(1)