diff options
Diffstat (limited to 'testsuite/tests/roles/should_compile/Roles2.hs')
-rw-r--r-- | testsuite/tests/roles/should_compile/Roles2.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/roles/should_compile/Roles2.hs b/testsuite/tests/roles/should_compile/Roles2.hs new file mode 100644 index 0000000000..1ead5a4e94 --- /dev/null +++ b/testsuite/tests/roles/should_compile/Roles2.hs @@ -0,0 +1,9 @@ +module Roles2 where + +import GHC.Ptr + +-- these *must* have certain roles, or things break strangely +-- see TcForeign + +data T1 a = K1 (IO a) +data T2 a = K2 (FunPtr a) |