summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/safeHaskell/safeLanguage/all.T
blob: 4b2209bca9cddd8b666a3a7ac84ba5c48765c454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Just do the normal way, SafeHaskell is all in the frontend
def f( opts ):
  opts.only_ways = ['normal']

setTestOpts(f)

test('SafeLang01', normal, compile, ['-trust base'])
test('SafeLang02', normal, compile, ['-trust base'])
test('SafeLang03', normal, compile, ['-trust base'])
test('SafeLang04', normal, compile_and_run, [''])
test('SafeLang05', normal, compile_and_run, ['-trust base'])
test('SafeLang06', normal, compile_and_run, [''])
test('SafeLang07', normal, compile_fail, [''])
test('SafeLang08', normal, compile_fail, [''])
test('SafeLang09', exit_code(1), compile_and_run, [''])
test('SafeLang10', normal, compile_fail, ['--make -trust base'])
test('SafeLang11', normal, compile_and_run, ['--make -trust base'])
test('SafeLang12', normal, compile_fail, ['--make -trust base'])