[clang-format][NFC] Add a TypeScript test case
[llvm-project.git] / flang / test / Semantics / OpenACC / acc-loop-validity.f90
blob205e67a4728fcbef16f93a1d516fae417ac1e192
1 ! RUN: %python %S/../test_errors.py %s %flang -fopenacc
3 program openacc_clause_validity
5 implicit none
7 integer :: i, n
9 i = 0
11 !ERROR: A DO loop must follow the LOOP directive
12 !$acc loop
13 i = 1
15 !$acc loop
16 do 100 i=0, n
17 100 continue
19 end