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 {
350
350
void Check (const parser::ActionStmt &stmt, const parser::CharBlock &source) {
351
351
common::visit (
352
352
common::visitors{
353
+ [&](const common::Indirection<parser::StopStmt> &) { return ; },
353
354
[&](const common::Indirection<parser::PrintStmt> &) {},
354
355
[&](const common::Indirection<parser::WriteStmt> &x) {
355
356
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
49
49
i = threadIdx%x
50
50
a(i) = c(10) ! ok, a is device and c is constant
51
51
end subroutine
52
+
53
+ attributes(global) subroutine stoptest()
54
+ print*,threadIdx%x
55
+ stop ! ok
56
+ end subroutine
52
57
end
53
58
54
59
program main
You can’t perform that action at this time.
0 commit comments