summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeo Camarasu <teofilcamarasu@gmail.com>2022-04-29 11:21:57 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-05-09 16:24:37 -0400
commit1ea414b6555fea246fc3ed772e39f3c2a0ccbba1 (patch)
tree559df0cfce029d79dfc84a0fc99f684f54d6a8a6
parent374554bb6b68fd8916cf2e95cb200b3a1390eb03 (diff)
downloadhaskell-1ea414b6555fea246fc3ed772e39f3c2a0ccbba1.tar.gz
add test case for #21446
-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 6e87e2f291..ad10845737 100644
--- a/testsuite/tests/profiling/should_run/Makefile
+++ b/testsuite/tests/profiling/should_run/Makefile
@@ -39,3 +39,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 22fa287750..1c49577e63 100644
--- a/testsuite/tests/profiling/should_run/all.T
+++ b/testsuite/tests/profiling/should_run/all.T
@@ -183,3 +183,5 @@ test('TraverseHeapTest', [only_ways(['prof'])], compile_and_run, ['-debug'])
# Check if -fno-prof-manual results in the manual cost center being ignored.
test('ignore_scc', [], compile_and_run,
['-fno-prof-manual'])
+
+test('T21446', [], makefile_test, ['T21446'])