From b0cd233cdcdcbed6b48279394d3c86d7c4bdd4cc Mon Sep 17 00:00:00 2001 From: Jade Abraham Date: Wed, 4 Dec 2024 14:35:33 -0800 Subject: [PATCH] add future for 26362 Signed-off-by: Jade Abraham --- test/functions/iterators/qualifiedParallelImport.bad | 2 ++ test/functions/iterators/qualifiedParallelImport.chpl | 11 +++++++++++ .../iterators/qualifiedParallelImport.future | 2 ++ test/functions/iterators/qualifiedParallelImport.good | 1 + 4 files changed, 16 insertions(+) create mode 100644 test/functions/iterators/qualifiedParallelImport.bad create mode 100644 test/functions/iterators/qualifiedParallelImport.chpl create mode 100644 test/functions/iterators/qualifiedParallelImport.future create mode 100644 test/functions/iterators/qualifiedParallelImport.good 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