Commit de90d888 authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Merge branch 'master' of http://darcs.haskell.org/testsuite

parents 96988ccb ef9249ee
......@@ -148,6 +148,8 @@ tests/dph/words/dph-words-copy-fast
tests/dph/words/dph-words-vseg-fast
tests/dph/classes/dph-classes-vseg-fast
mk/ghc-config
mk/ghcconfig_home_davidt_Ghc_head_inplace_bin_ghc-stage2.mk
tests/annotations/should_run/Config.hs
tests/annotations/should_run/annrun01
tests/array/should_run/arr001
......@@ -175,6 +177,21 @@ tests/arrows/should_run/arrowrun002
tests/arrows/should_run/arrowrun003
tests/arrows/should_run/arrowrun004
tests/boxy/T2193
tests/cabal/1750.hs
tests/cabal/1750.out
tests/cabal/cabal01/dist/
tests/cabal/cabal01/install/
tests/cabal/cabal01/local.db/
tests/cabal/cabal01/setup
tests/cabal/cabal03/Setup
tests/cabal/cabal03/p/dist/
tests/cabal/cabal03/q/dist/
tests/cabal/cabal03/tmp.d/
tests/cabal/cabal04/Setup
tests/cabal/cabal04/dist/
tests/cabal/cabal04/err
tests/cabal/shadow.hs
tests/codeGen/should_compile/2578
tests/codeGen/should_run/1852
tests/codeGen/should_run/1861
tests/codeGen/should_run/2080
......@@ -184,6 +201,7 @@ tests/codeGen/should_run/3561
tests/codeGen/should_run/3677
tests/codeGen/should_run/4441
tests/codeGen/should_run/5129
tests/codeGen/should_run/5149
tests/codeGen/should_run/5626
tests/codeGen/should_run/5747
tests/codeGen/should_run/cgrun001
......@@ -248,6 +266,7 @@ tests/codeGen/should_run/cgrun065
tests/codeGen/should_run/cgrun066
tests/codeGen/should_run/cgrun067
tests/codeGen/should_run/cgrun068
tests/codeGen/should_run/cgrun069
tests/codeGen/should_run/cgrun070
tests/codeGen/should_run/cgrun071
tests/concurrent/prog001/concprog001
......@@ -266,6 +285,7 @@ tests/concurrent/should_run/4811
tests/concurrent/should_run/4813
tests/concurrent/should_run/5238
tests/concurrent/should_run/5421
tests/concurrent/should_run/5558
tests/concurrent/should_run/5611
tests/concurrent/should_run/allowinterrupt001
tests/concurrent/should_run/async001
......@@ -323,10 +343,12 @@ tests/concurrent/should_run/conc066
tests/concurrent/should_run/conc067
tests/concurrent/should_run/conc068
tests/concurrent/should_run/conc071
tests/concurrent/should_run/conc072
tests/concurrent/should_run/conc073
tests/concurrent/should_run/foreignInterruptible
tests/concurrent/should_run/mask001
tests/concurrent/should_run/mask002
tests/concurrent/should_run/numsparks001
tests/concurrent/should_run/throwto001
tests/concurrent/should_run/throwto002
tests/concurrent/should_run/throwto003
......@@ -394,13 +416,45 @@ tests/deriving/should_run/drvrun019
tests/deriving/should_run/drvrun020
tests/deriving/should_run/drvrun021
tests/dph/quickhull/dph-quickhull-opt
tests/driver/1959/E.hs
tests/driver/1959/prog
tests/driver/437/Test
tests/driver/437/Test2
tests/driver/5313
tests/driver/A061a.s
tests/driver/A061b.s
tests/driver/A064.hspp
tests/driver/A065.hspp
tests/driver/A066.tmp
tests/driver/A067.tmp
tests/driver/A070.s
tests/driver/A071.tmp
tests/driver/B062d/
tests/driver/B062e/
tests/driver/Hello062a.hs
tests/driver/Hello062b.hs
tests/driver/Hello062c.hs
tests/driver/T3007/A/Setup
tests/driver/T3007/A/dist/
tests/driver/T3007/B/Setup
tests/driver/T3007/B/dist/
tests/driver/T3007/package.conf
tests/driver/T3389
tests/driver/T4437
tests/driver/T5147/B.hs
tests/driver/T5198dump/
tests/driver/T5584/A.hi-boot
tests/driver/T5584_out/
tests/driver/depend200
tests/driver/dynHelloWorld
tests/driver/dynamic_flags_001/C
tests/driver/recomp001/B.hs
tests/driver/recomp001/C
tests/driver/recomp003/Data/
tests/driver/recomp003/err
tests/driver/recomp004/MainX
tests/driver/recomp004/MainX.hs
tests/driver/recomp004/c.c
tests/driver/recomp005/C.hs
tests/driver/recomp006/B.hs
tests/driver/recomp006/err
......@@ -412,7 +466,21 @@ tests/driver/recomp007/b/dist/
tests/driver/recomp007/local.package.conf/
tests/driver/recomp008/A.hs
tests/driver/recomp008/prog
tests/driver/recomp010/Main
tests/driver/recomp010/X.hs
tests/driver/recomp011/A.hsinc
tests/driver/recomp011/B.hsinc
tests/driver/recomp011/Main
tests/driver/rtsopts002
tests/driver/spacesInArgs
tests/driver/withRtsOpts
tests/driver/withRtsOpts.out
tests/dynlibs/T3807-load
tests/dynlibs/T3807test.so
tests/dynlibs/T5373A
tests/dynlibs/T5373B
tests/dynlibs/T5373C
tests/dynlibs/T5373D
tests/ffi/should_run/1288
tests/ffi/should_run/1679
tests/ffi/should_run/2276
......@@ -435,6 +503,7 @@ tests/ffi/should_run/ffi009
tests/ffi/should_run/ffi010
tests/ffi/should_run/ffi011
tests/ffi/should_run/ffi013
tests/ffi/should_run/ffi014
tests/ffi/should_run/ffi015
tests/ffi/should_run/ffi016
tests/ffi/should_run/ffi017
......@@ -449,6 +518,7 @@ tests/ffi/should_run/fptrfail01
tests/gadt/CasePrune
tests/gadt/Session
tests/gadt/gadt2
tests/gadt/gadt23
tests/gadt/gadt4
tests/gadt/gadt5
tests/gadt/records
......@@ -463,6 +533,30 @@ tests/generics/Uniplate/GUniplate1
tests/ghc-api/T4891/T4891
tests/ghc-api/apirecomp001/myghc
tests/ghc-api/dynCompileExpr/dynCompileExpr
tests/ghci.debugger/scripts/break022/A.hs
tests/ghci.debugger/scripts/break023/A.hs
tests/ghci/linking/dir001/
tests/ghci/linking/dir002/
tests/ghci/linking/dir004/
tests/ghci/linking/dir005/
tests/ghci/linking/dir006/
tests/ghci/prog001/C.hs
tests/ghci/prog002/A.hs
tests/ghci/prog003/D.hs
tests/ghci/prog004/ctest.c
tests/ghci/prog005/A.hs
tests/ghci/prog006/Boot.hs
tests/ghci/prog009/A.hs
tests/ghci/scripts/T1914A.hs
tests/ghci/scripts/T1914B.hs
tests/ghci/scripts/ghci027.hs
tests/hsc2hs/3837.hs
tests/hsc2hs/hsc2hs001.hs
tests/hsc2hs/hsc2hs002.hs
tests/hsc2hs/hsc2hs003
tests/hsc2hs/hsc2hs003.hs
tests/hsc2hs/hsc2hs004
tests/hsc2hs/hsc2hs004.hs
tests/indexed-types/should_run/GMapAssoc
tests/indexed-types/should_run/GMapTop
tests/indexed-types/should_run/T2985
......@@ -475,6 +569,7 @@ tests/lib/Data.ByteString/bytestring003
tests/lib/Data.ByteString/bytestring006
tests/lib/IO/2122
tests/lib/IO/2122-test
tests/lib/IO/3307
tests/lib/IO/4808
tests/lib/IO/4808.test
tests/lib/IO/4855
......@@ -483,6 +578,7 @@ tests/lib/IO/IOError001
tests/lib/IO/IOError002
tests/lib/IO/T4113
tests/lib/IO/T4144
tests/lib/IO/chinese-name
tests/lib/IO/concio002
tests/lib/IO/countReaders001
tests/lib/IO/countReaders001.txt
......@@ -540,6 +636,7 @@ tests/lib/IO/encoding001.utf8.utf32be
tests/lib/IO/encoding001.utf8.utf32le
tests/lib/IO/encoding002
tests/lib/IO/encodingerror001
tests/lib/IO/environment001
tests/lib/IO/finalization001
tests/lib/IO/hClose001
tests/lib/IO/hClose001.tmp
......@@ -620,6 +717,7 @@ tests/lib/IORef/
tests/lib/Numeric/
tests/lib/OldException/OldException001
tests/lib/PrettyPrint/T3911
tests/lib/PrettyPrint/pp1
tests/lib/Text.Printf/1548
tests/lib/Time/T5430
tests/lib/Time/time002
......@@ -627,6 +725,8 @@ tests/lib/Time/time003
tests/lib/Time/time004
tests/lib/exceptions/exceptions001
tests/lib/integer/integerBits
tests/lib/integer/integerConstantFolding
tests/lib/integer/integerConstantFolding.simpl
tests/lib/integer/integerConversions
tests/lib/libposix/po003.out
tests/lib/libposix/posix002
......@@ -670,6 +770,51 @@ tests/lib/should_run/stableptr005
tests/lib/should_run/text001
tests/lib/should_run/tup001
tests/lib/should_run/weak001
tests/mdo/should_compile/mdo001
tests/mdo/should_compile/mdo002
tests/mdo/should_compile/mdo003
tests/mdo/should_compile/mdo004
tests/mdo/should_compile/mdo005
tests/mdo/should_run/mdorun001
tests/mdo/should_run/mdorun002
tests/mdo/should_run/mdorun003
tests/module/Mod145_A.mod146_hi
tests/module/Mod145_A.mod146_o
tests/module/Mod157_A.mod158_hi
tests/module/Mod157_A.mod158_o
tests/module/Mod157_B.mod158_hi
tests/module/Mod157_B.mod158_o
tests/module/Mod157_C.mod158_hi
tests/module/Mod157_C.mod158_o
tests/module/Mod157_D.mod158_hi
tests/module/Mod157_D.mod158_o
tests/module/Mod159_A.mod160_hi
tests/module/Mod159_A.mod160_o
tests/module/Mod159_B.mod160_hi
tests/module/Mod159_B.mod160_o
tests/module/Mod159_C.mod160_hi
tests/module/Mod159_C.mod160_o
tests/module/Mod159_D.mod160_hi
tests/module/Mod159_D.mod160_o
tests/module/Mod164_A.mod165_hi
tests/module/Mod164_A.mod165_o
tests/module/Mod164_A.mod166_hi
tests/module/Mod164_A.mod166_o
tests/module/Mod164_A.mod167_hi
tests/module/Mod164_A.mod167_o
tests/module/Mod164_B.mod165_hi
tests/module/Mod164_B.mod165_o
tests/module/Mod164_B.mod166_hi
tests/module/Mod164_B.mod166_o
tests/module/Mod164_B.mod167_hi
tests/module/Mod164_B.mod167_o
tests/module/mod166.mod166_hi
tests/module/mod166.mod166_o
tests/module/mod167.mod167_hi
tests/module/mod167.mod167_o
tests/module/mod175/test
tests/module/mod175/test2
tests/module/mod179
tests/numeric/should_run/3676
tests/numeric/should_run/4381
tests/numeric/should_run/4383
......@@ -709,13 +854,54 @@ tests/parser/should_run/readRun003
tests/parser/should_run/readRun004
tests/parser/unicode/1744
tests/parser/unicode/utf8_024
tests/perf/compiler/T5030.comp.stats
tests/perf/compiler/T5321FD.comp.stats
tests/perf/compiler/T5321Fun.comp.stats
tests/perf/compiler/T5631.comp.stats
tests/perf/compiler/T783.comp.stats
tests/perf/compiler/parsing001.comp.stats
tests/perf/should_run/3586
tests/perf/should_run/3586.stats
tests/perf/should_run/MethSharing
tests/perf/should_run/MethSharing.stats
tests/perf/should_run/T149_A
tests/perf/should_run/T149_B
tests/perf/should_run/T2902_A
tests/perf/should_run/T2902_B
tests/perf/should_run/T3245
tests/perf/should_run/T3736
tests/perf/should_run/T3736.speed.f32
tests/perf/should_run/T3738
tests/perf/should_run/T3738.stats
tests/perf/should_run/T4321
tests/perf/should_run/T4474a
tests/perf/should_run/T4474a.stats
tests/perf/should_run/T4474b
tests/perf/should_run/T4474b.stats
tests/perf/should_run/T4474c
tests/perf/should_run/T4474c.stats
tests/perf/should_run/T4830
tests/perf/should_run/T4830.stats
tests/perf/should_run/T4978
tests/perf/should_run/T4978.stats
tests/perf/should_run/T5113
tests/perf/should_run/T5113.stats
tests/perf/should_run/T5205
tests/perf/should_run/T5205.stats
tests/perf/should_run/T5237
tests/perf/should_run/T5237.stats
tests/perf/should_run/T5549
tests/perf/should_run/T5549.stats
tests/perf/should_run/lazy-bs-alloc
tests/perf/should_run/lazy-bs-alloc.stats
tests/perf/space_leaks/T2762
tests/perf/space_leaks/T2762.stats
tests/perf/space_leaks/T4018
tests/perf/space_leaks/T4334
tests/perf/space_leaks/T4334.stats
tests/perf/space_leaks/space_leak_001
tests/perf/space_leaks/space_leak_001.stats
tests/plugins/plugins01
tests/plugins/plugins05
tests/plugins/plugins06
tests/polykinds/PolyKinds09
......@@ -752,13 +938,30 @@ tests/programs/seward-space-leak/seward-space-leak
tests/programs/strict_anns/strict_anns
tests/programs/thurston-modular-arith/thurston-modular-arith
tests/quasiquotation/T4491/T4491
tests/rebindable/T5038
tests/rebindable/rebindable10
tests/rebindable/rebindable2
tests/rebindable/rebindable3
tests/rebindable/rebindable4
tests/rebindable/rebindable5
tests/rebindable/rebindable7
tests/rename/prog006/pkg.conf
tests/rename/prog006/pwd
tests/rename/should_compile/T1792_imports.imports
tests/rename/should_compile/T4239.imports
tests/rename/should_compile/T4240.imports
tests/rename/should_compile/T5592
tests/rts/2047
tests/rts/2783
tests/rts/3236
tests/rts/3424
tests/rts/4850
tests/rts/5250
tests/rts/5644/5644
tests/rts/T2615
tests/rts/T4059
tests/rts/T5423
tests/rts/atomicinc
tests/rts/bug1010
tests/rts/derefnull
tests/rts/divbyzero
......@@ -766,11 +969,27 @@ tests/rts/exec_signals
tests/rts/exec_signals_child
tests/rts/exec_signals_prepare
tests/rts/libfoo_T2615.so
tests/rts/outofmem
tests/rts/outofmem2
tests/rts/return_mem_to_os
tests/rts/rtsflags001
tests/rts/rtsflags002
tests/rts/stack001
tests/rts/stack002
tests/rts/stack003
tests/rts/testblockalloc
tests/rts/testwsdeque
tests/rts/traceEvent
tests/safeHaskell/check/Check04
tests/safeHaskell/safeLanguage/SafeLang04
tests/safeHaskell/safeLanguage/SafeLang05
tests/safeHaskell/safeLanguage/SafeLang06
tests/safeHaskell/safeLanguage/SafeLang09
tests/safeHaskell/safeLanguage/SafeLang11
tests/safeHaskell/safeLanguage/SafeLang13
tests/safeHaskell/safeLanguage/SafeLang15
tests/safeHaskell/unsafeLibs/BadImport02
tests/simplCore/should_compile/T3055.simpl
tests/simplCore/should_run/SeqRule
tests/simplCore/should_run/T2756
tests/simplCore/should_run/T3403
......@@ -800,6 +1019,27 @@ tests/stranal/should_run/strun001
tests/stranal/should_run/strun002
tests/stranal/should_run/strun003
tests/stranal/should_run/strun004
tests/th/T1835
tests/th/T3572
tests/th/T3920
tests/th/T5379
tests/th/T5410
tests/th/TH_Depends
tests/th/TH_Depends_external.txt
tests/th/TH_lookupName
tests/th/TH_ppr1
tests/th/TH_recover
tests/th/TH_repE2
tests/th/TH_repGuardOutput
tests/th/TH_repPrimOutput
tests/th/TH_repPrimOutput2
tests/th/TH_spliceE1
tests/th/TH_spliceE4
tests/th/TH_spliceE5
tests/th/TH_spliceViewPat/TH_spliceViewPat
tests/th/TH_unresolvedInfix
tests/th/TH_viewPatPrint
tests/th/TH_where
tests/typecheck/should_compile/tc159
tests/typecheck/should_fail/tcfail149
tests/typecheck/should_run/Defer01
......@@ -862,3 +1102,5 @@ tests/typecheck/should_run/tcrun046
tests/typecheck/should_run/testeq2
tests/typecheck/testeq1/typecheck.testeq1
tests/lib/IO/chinese-file-*
module Main where
import Data.Int
import Data.Word
-- Test case for bug #5785. The cause of this was that the LLVM backend
-- converted all Int constants using (fromInteger :: Int) and so on 32bit a
-- Int64 or Word32 would be truncated to 32bit! value before printing out.
main :: IO ()
main = do
-- first two should print as big numbers (as unsigned)
print (-1 :: Word8)
print (-1 :: Word16)
print (-1 :: Word32)
print (-1 :: Word64)
print (-1 :: Int8)
print (-1 :: Int16)
print (-1 :: Int32)
print (-1 :: Int64)
-- only requires 32 bits (unsigned)
print (2316287658 :: Word8)
print (2316287658 :: Word16)
print (2316287658 :: Word32)
print (2316287658 :: Word64)
print (2316287658 :: Int8)
print (2316287658 :: Int16)
print (2316287658 :: Int32)
print (2316287658 :: Int64)
-- this requries a 64 (unsigned) bit word to store correctly
print (32342316287658 :: Word8)
print (32342316287658 :: Word16)
print (32342316287658 :: Word32)
print (32342316287658 :: Word64)
print (32342316287658 :: Int8)
print (32342316287658 :: Int16)
print (32342316287658 :: Int32)
print (32342316287658 :: Int64)
255
65535
4294967295
18446744073709551615
-1
-1
-1
-1
170
48810
2316287658
2316287658
-86
-16726
-1978679638
2316287658
170
1706
1212548778
32342316287658
-86
1706
1212548778
32342316287658
......@@ -88,3 +88,5 @@ test('5149', omit_ways(['ghci']), multi_compile_and_run,
test('5129', normal, compile_and_run, [''])
test('5626', exit_code(1), compile_and_run, [''])
test('5747', if_arch('i386', extra_hc_opts('-msse2')), compile_and_run, ['-O2'])
test('5785', normal, compile_and_run, [''])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment