Skip to content

Commit

Permalink
Add a test for #8035; patch from errge
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Lynagh committed Jul 7, 2013
1 parent ae3dae9 commit e9a3f72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/rts/T8035.hs
@@ -0,0 +1,10 @@
{-# LANGUAGE ScopedTypeVariables #-}

import Control.Exception
import Control.Monad
import GHC.Conc

main = join $ atomically $ do
catchSTM
(throwSTM ThreadKilled `orElse` return (putStrLn "wtf"))
(\(e::SomeException) -> return (putStrLn "ok"))
1 change: 1 addition & 0 deletions tests/rts/all.T
Expand Up @@ -179,3 +179,4 @@ test('T7919', [extra_clean(['T7919A.o','T7919A.hi',
when(fast(),skip) ],
compile_and_run, [''])

test('T8035', normal, compile_and_run, [''])

0 comments on commit e9a3f72

Please sign in to comment.