summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeo Camarasu <teofilcamarasu@gmail.com>2022-04-29 11:21:57 +0100
committerZubin Duggal <zubin.duggal@gmail.com>2022-07-14 14:39:38 +0530
commita548e8de8a56f3e7c5ff80c4a3e03621e63e208f (patch)
treea88dfdae3a94b2ffd8e0fb06000a28a2010ecb1e
parent10dbc896d6bed597bc8d84e1b2b30e3e6810f040 (diff)
downloadhaskell-a548e8de8a56f3e7c5ff80c4a3e03621e63e208f.tar.gz
add test case for #21446
(cherry picked from commit 376088dd91123b64947eb376f9c3db23117f293d) (cherry picked from commit 8bc4b57fe328f7828a7d69c55aa151079359e06c)
-rw-r--r--testsuite/tests/profiling/should_run/Makefile9
-rw-r--r--testsuite/tests/profiling/should_run/T21446.hs1
-rw-r--r--testsuite/tests/profiling/should_run/all.T2
3 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/profiling/should_run/Makefile b/testsuite/tests/profiling/should_run/Makefile
index 19a682fb97..f688ef7104 100644
--- a/testsuite/tests/profiling/should_run/Makefile
+++ b/testsuite/tests/profiling/should_run/Makefile
@@ -30,3 +30,12 @@ T15897:
"$(TEST_HC)" -prof -fprof-auto -debug -v0 T15897.hs
./T15897 10000000 +RTS -s -hc 2>/dev/null
./T15897 10000000 +RTS -s -hr 2>/dev/null
+
+.PHONY: T21446
+T21446:
+ $(RM) T21446
+ $(RM) stem.hp
+ "$(TEST_HC)" -prof -rtsopts -v0 T21446.hs
+ ./T21446 +RTS -hc -postem
+ [ -f stem.hp ]
+
diff --git a/testsuite/tests/profiling/should_run/T21446.hs b/testsuite/tests/profiling/should_run/T21446.hs
new file mode 100644
index 0000000000..b3549c2fe3
--- /dev/null
+++ b/testsuite/tests/profiling/should_run/T21446.hs
@@ -0,0 +1 @@
+main = return ()
diff --git a/testsuite/tests/profiling/should_run/all.T b/testsuite/tests/profiling/should_run/all.T
index d82d739172..b6d2568840 100644
--- a/testsuite/tests/profiling/should_run/all.T
+++ b/testsuite/tests/profiling/should_run/all.T
@@ -169,3 +169,5 @@ test('T15897',
test('T17572', [], compile_and_run, [''])
test('TraverseHeapTest', [only_ways(['prof'])], compile_and_run, ['-debug'])
+
+test('T21446', [], makefile_test, ['T21446'])