diff options
author | SiHuaN <sihuan@sakuya.love> | 2023-11-01 09:05:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-01 09:05:33 +0800 |
commit | 8b91de5d6a3f98dcc00bbd286e339e512f7e3682 (patch) | |
tree | ae3effd0048d835aa1985968d0869ca290d5e2e4 /flang/test/Parser | |
parent | 2ab14dff4355b5b5492214f4a21763be77f0f223 (diff) | |
download | llvm-8b91de5d6a3f98dcc00bbd286e339e512f7e3682.zip llvm-8b91de5d6a3f98dcc00bbd286e339e512f7e3682.tar.gz llvm-8b91de5d6a3f98dcc00bbd286e339e512f7e3682.tar.bz2 |
[Flang][OpenMP] Correctly handling continuation lines with Fixed Source Form Conditional Compilation Sentinels (#70309)
Fixes #67947
---------
Co-authored-by: SiHuaN <liyongtai@iscas.ac.cn>
Co-authored-by: Leandro Lupori <leandro.lupori@gmail.com>
Diffstat (limited to 'flang/test/Parser')
-rw-r--r-- | flang/test/Parser/continuation-in-conditional-compilation.f | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/flang/test/Parser/continuation-in-conditional-compilation.f b/flang/test/Parser/continuation-in-conditional-compilation.f new file mode 100644 index 0000000..35eecbc --- /dev/null +++ b/flang/test/Parser/continuation-in-conditional-compilation.f @@ -0,0 +1,16 @@ +! RUN: %flang_fc1 -fopenmp -fopenacc -E %s 2>&1 | FileCheck %s + program main +! CHECK: k01=1+1 + k01=1+ +!$ & 1 + +! CHECK: !$omp parallel private(k01) +!$omp parallel +!$omp+ private(k01) +!$omp end parallel + +! CHECK-NOT: comment +!$omp parallel +!$acc+comment +!$omp end parallel + end |