diff --git a/test/functions/iterators/qualifiedParallelImport.bad b/test/functions/iterators/qualifiedParallelImport.bad new file mode 100644 index 000000000000..a209a64240ce --- /dev/null +++ b/test/functions/iterators/qualifiedParallelImport.bad @@ -0,0 +1,2 @@ +qualifiedParallelImport.chpl:7: In function 'main': +qualifiedParallelImport.chpl:9: error: A standalone or leader iterator is not found for the iterable expression in this forall loop diff --git a/test/functions/iterators/qualifiedParallelImport.chpl b/test/functions/iterators/qualifiedParallelImport.chpl new file mode 100644 index 000000000000..e3303ad99f9b --- /dev/null +++ b/test/functions/iterators/qualifiedParallelImport.chpl @@ -0,0 +1,11 @@ + +module A { + iter foo(): int { yield 1; } + iter foo(param tag): int where tag == iterKind.standalone { yield 1; } +} +module B { + proc main() { + import A; + forall i in A.foo() { writeln(i); } + } +} diff --git a/test/functions/iterators/qualifiedParallelImport.future b/test/functions/iterators/qualifiedParallelImport.future new file mode 100644 index 000000000000..19d3efe388aa --- /dev/null +++ b/test/functions/iterators/qualifiedParallelImport.future @@ -0,0 +1,2 @@ +bug: cannot resolve parallel iterator with qualified import +#26362 diff --git a/test/functions/iterators/qualifiedParallelImport.good b/test/functions/iterators/qualifiedParallelImport.good new file mode 100644 index 000000000000..d00491fd7e5b --- /dev/null +++ b/test/functions/iterators/qualifiedParallelImport.good @@ -0,0 +1 @@ +1