diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-12-26 17:59:10 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-12-26 21:17:01 -0500 |
commit | 8769178dc5c596f0e909565b7ece07a8a3eb510a (patch) | |
tree | 1e1452cb201661f317cee5e78a46e255b3fd5a5b | |
parent | 334290b6681796dd141c964b88c541da13ce03c7 (diff) | |
download | haskell-wip/T17573.tar.gz |
testsuite: Add test for #17573wip/T17573
-rw-r--r-- | testsuite/tests/profiling/should_run/T17573.hs | 26 | ||||
-rw-r--r-- | testsuite/tests/profiling/should_run/all.T | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/tests/profiling/should_run/T17573.hs b/testsuite/tests/profiling/should_run/T17573.hs new file mode 100644 index 0000000000..d92efc7434 --- /dev/null +++ b/testsuite/tests/profiling/should_run/T17573.hs @@ -0,0 +1,26 @@ +{-# OPTIONS_GHC -fprof-auto-top #-} + +module Main where + +data D = D + +class C a where + shouldn'tSCC :: a -> () + +instance C D where + shouldn'tSCC D = () + {-# INLINE shouldn'tSCC #-} + +hasSCC :: D -> () +hasSCC D = () + +hasn'tSCC :: D -> () +hasn'tSCC D = () +{-# INLINE hasn'tSCC #-} + +main :: IO () +main = do + print (hasSCC D) + print (hasn'tSCC D) + print (shouldn'tSCC D) + diff --git a/testsuite/tests/profiling/should_run/all.T b/testsuite/tests/profiling/should_run/all.T index fe98517d96..c6d2e0c541 100644 --- a/testsuite/tests/profiling/should_run/all.T +++ b/testsuite/tests/profiling/should_run/all.T @@ -151,3 +151,4 @@ test('T15897', makefile_test, ['T15897']) test('T17572', [], compile_and_run, ['']) +test('T17573', [], compile_and_run, ['']) |