We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e7312b commit 7009b06Copy full SHA for 7009b06
flang/lib/Semantics/check-cuda.cpp
@@ -350,6 +350,7 @@ template <bool IsCUFKernelDo> class DeviceContextChecker {
350
void Check(const parser::ActionStmt &stmt, const parser::CharBlock &source) {
351
common::visit(
352
common::visitors{
353
+ [&](const common::Indirection<parser::StopStmt> &) { return; },
354
[&](const common::Indirection<parser::PrintStmt> &) {},
355
[&](const common::Indirection<parser::WriteStmt> &x) {
356
if (x.value().format) { // Formatted write to '*' or '6'
flang/test/Semantics/cuf09.cuf
@@ -49,6 +49,11 @@ module m
49
i = threadIdx%x
50
a(i) = c(10) ! ok, a is device and c is constant
51
end subroutine
52
+
53
+ attributes(global) subroutine stoptest()
54
+ print*,threadIdx%x
55
+ stop ! ok
56
+ end subroutine
57
end
58
59
program main
0 commit comments