File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -350,6 +350,7 @@ template <bool IsCUFKernelDo> class DeviceContextChecker {
350350 void Check (const parser::ActionStmt &stmt, const parser::CharBlock &source) {
351351 common::visit (
352352 common::visitors{
353+ [&](const common::Indirection<parser::StopStmt> &) { return ; },
353354 [&](const common::Indirection<parser::PrintStmt> &) {},
354355 [&](const common::Indirection<parser::WriteStmt> &x) {
355356 if (x.value ().format ) { // Formatted write to '*' or '6'
Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ module m
4949 i = threadIdx%x
5050 a(i) = c(10) ! ok, a is device and c is constant
5151 end subroutine
52+
53+ attributes(global) subroutine stoptest()
54+ print*,threadIdx%x
55+ stop ! ok
56+ end subroutine
5257end
5358
5459program main
You can’t perform that action at this time.
0 commit comments