summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2023-03-15 16:41:34 -0400
committerSylvain Henry <sylvain@haskus.fr>2023-04-20 08:38:00 +0000
commite7d1306f4513da89d71ed8059403f05171657164 (patch)
tree9cf1cd86f2ff3423af31ec214a8a4650a3ce69c1
parent063201e9c0a54af1715ab8ad49abc115d75066c0 (diff)
downloadhaskell-wip/T23071.tar.gz
testsuite: Add test for #23071wip/T23071
-rw-r--r--testsuite/tests/primops/should_run/T23071.hs5
-rw-r--r--testsuite/tests/primops/should_run/all.T1
2 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/primops/should_run/T23071.hs b/testsuite/tests/primops/should_run/T23071.hs
new file mode 100644
index 0000000000..e28a3b884a
--- /dev/null
+++ b/testsuite/tests/primops/should_run/T23071.hs
@@ -0,0 +1,5 @@
+import Control.Monad
+import GHC.Conc.Sync
+
+main = replicateM_ 1000000 $ listThreads >>= print
+
diff --git a/testsuite/tests/primops/should_run/all.T b/testsuite/tests/primops/should_run/all.T
index f513d15a2e..4148546280 100644
--- a/testsuite/tests/primops/should_run/all.T
+++ b/testsuite/tests/primops/should_run/all.T
@@ -60,3 +60,4 @@ test('UnliftedTVar2', normal, compile_and_run, [''])
test('UnliftedWeakPtr', normal, compile_and_run, [''])
test('T21624', normal, compile_and_run, [''])
+test('T23071', ignore_stdout, compile_and_run, [''])