1 // RUN: %clang_cc1 %s -verify -fopenacc
3 // expected-error@+1{{OpenACC construct 'loop' cannot be used here; it can only be used in a statement context}}
6 // expected-error@+1{{OpenACC construct 'loop' cannot be used here; it can only be used in a statement context}}
11 // expected-error@+1{{OpenACC construct 'loop' cannot be used here; it can only be used in a statement context}}
16 // expected-error@+3{{OpenACC 'loop' construct can only be applied to a 'for' loop}}
17 // expected-note@+1{{'loop' construct is here}}
21 // expected-error@+3{{OpenACC 'loop' construct can only be applied to a 'for' loop}}
22 // expected-note@+1{{'loop' construct is here}}
26 // expected-error@+3{{OpenACC 'loop' construct can only be applied to a 'for' loop}}
27 // expected-note@+1{{'loop' construct is here}}
31 // expected-error@+3{{OpenACC 'loop' construct can only be applied to a 'for' loop}}
32 // expected-note@+1{{'loop' construct is here}}
37 for(int i
= 0; i
< 6; ++i
);
48 // expected-error@+3{{OpenACC 'loop' construct can only be applied to a 'for' loop}}
49 // expected-note@+1{{'loop' construct is here}}
53 // expected-error@+3{{OpenACC 'loop' construct can only be applied to a 'for' loop}}
54 // expected-note@+1{{'loop' construct is here}}
58 // expected-error@+3{{OpenACC 'loop' construct can only be applied to a 'for' loop}}
59 // expected-note@+1{{'loop' construct is here}}
63 // expected-error@+3{{OpenACC 'loop' construct can only be applied to a 'for' loop}}
64 // expected-note@+1{{'loop' construct is here}}
69 for(T i
= 0; i
< 1; ++i
);