summaryrefslogtreecommitdiff
path: root/testsuite/tests/rts/flags/T12870g.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rts/flags/T12870g.hs')
-rw-r--r--testsuite/tests/rts/flags/T12870g.hs8
1 files changed, 8 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..e409349827
--- /dev/null
+++ b/testsuite/tests/rts/flags/T12870g.hs
@@ -0,0 +1,8 @@
+module T12870g where
+
+import GHC.RTS.Flags (getGCFlags, generations)
+
+main :: IO ()
+main = do
+ gcFlags <- getGCFlags
+ putStr . show $ generations gcFlags