An OpenMP, OpenACC, or CUDA conditional line should be treated as a comment when that's what its payload contains, not as a conditional source line that will confuse the parser when it is indeed just a comment.
6 lines
105 B
Fortran
6 lines
105 B
Fortran
!RUN: %flang_fc1 -fopenmp -fdebug-unparse %s 2>&1 | FileCheck %s
|
|
!CHECK: END
|
|
!CHECK-NOT: error:
|
|
end
|
|
!$ !
|