Some Fortran source-level features that work for OpenMP !$ conditional lines, such as free form line continuation, don't work for OpenACC !@acc or CUDA !@cuf conditional lines. Make them less particular. Fixes https://github.com/llvm/llvm-project/issues/164470.
7 lines
163 B
Plaintext
7 lines
163 B
Plaintext
!RUN: %flang_fc1 -x cuda -fdebug-unparse %s 2>&1 | FileCheck %s
|
|
!CHECK: ATTRIBUTES(DEVICE) FUNCTION foo()
|
|
!@cuf attributes(device) &
|
|
function foo()
|
|
foo = 1.
|
|
end
|