summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeo Camarasu <teofilcamarasu@gmail.com>2022-04-29 11:21:57 +0100
committerTeo Camarasu <teofilcamarasu@gmail.com>2022-05-27 12:02:31 +0100
commite1cf630b952e9f2c196c12d70c5e2a69a241ba9e (patch)
tree7e6a5fa02af11868c4dad86f3b90e09f0c6e34b7
parent46e736dd280a5674bd6ecd5d1595358f29370f5c (diff)
downloadhaskell-e1cf630b952e9f2c196c12d70c5e2a69a241ba9e.tar.gz
add test case for #21446
(cherry picked from commit 376088dd91123b64947eb376f9c3db23117f293d)
-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'])