diff options
Diffstat (limited to 'testsuite/tests/rts/flags/T12870g.hs')
-rw-r--r-- | testsuite/tests/rts/flags/T12870g.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/rts/flags/T12870g.hs b/testsuite/tests/rts/flags/T12870g.hs new file mode 100644 index 0000000000..3efd633ddd --- /dev/null +++ b/testsuite/tests/rts/flags/T12870g.hs @@ -0,0 +1,9 @@ +--We check the generation count as a way to verify an RTS argument +--was actually parsed and accepted by the RTS. + +import GHC.RTS.Flags (getGCFlags, generations) + +main :: IO () +main = do + gcFlags <- getGCFlags + putStr . show $ generations gcFlags |