Skip to content

Commit

Permalink
Add (broken) test for #19966
Browse files Browse the repository at this point in the history
  • Loading branch information
mpickering authored and Marge Bot committed Jun 10, 2021
1 parent 8baa887 commit fb6b637
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testsuite/tests/rename/should_compile/T19966.hs
@@ -0,0 +1,7 @@
module T19966 where

-- I is out of scope, so out-of-scope is a warning.
x = I

-- IO is out of scope, so out-of-scope should be a warning, but fails.
y = IO
1 change: 1 addition & 0 deletions testsuite/tests/rename/should_compile/all.T
Expand Up @@ -175,3 +175,4 @@ test('T18497', [], makefile_test, ['T18497'])
test('T18264', [], makefile_test, ['T18264'])
test('T18302', expect_broken(18302), compile, [''])
test('T17853', [], multimod_compile, ['T17853', '-v0'])
test('T19966', expect_broken(19966), compile, ['-fdefer-out-of-scope-variables'])

0 comments on commit fb6b637

Please sign in to comment.