Add some tests for evaluating type-level naturals.
Follow change in [e17549c80425f3/base]
Tests for the Coercible class

Also see http://ghc.haskell.org/trac/ghc/wiki/NewtypeWrappers
Tests for #5435 (init/init_array/constr handling by linker)

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Properly provide leading underscore when necessary.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Fix egregious pathchar business in linker_unload.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Suppress some known errors from Mac OS X.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Suppress some known broken Windows tests.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Adjust test suite to new Language Pragma warnigns

(this is related to #3647)
Make these two tests thread safe.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Add tests for the new ByteArray# <-> Addr# copy primops

Essentially the same tests as for the existing ByteArray# ones.

Signed-off-by: Austin Seipp <austin@well-typed.com>
Fix up cgrun072 a bit (#8250)

This includes:

 * Adding a test for bswap16 with a low byte >= 128
 * Also test the byteSwapN functions from GHC.Word, tested both INLINE
   and not INLINE, so we test both independent parts: the compilation of
   base, and the backend compiling the code *using* base.
 * Fix the usage of byteSwapN# primitives in the test, by masking off
 * the higher bits when storing the results in Word16/Word32.

Thanks to Reid Barton for the investigation.

Authored-by: Reid Barton <rwbarton@gmail.com>
Signed-off-by: Austin Seipp <austin@well-typed.com>
Delete trailing whitespace in cgrun070

Signed-off-by: Austin Seipp <austin@well-typed.com>
Fix usage of 'expect_fail' in T2507
Add test case for #8184
T5435 test improvements, see #5435 for details.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Test for #8306

Signed-off-by: Austin Seipp <austin@well-typed.com>
New and improved tests for #5435. Linux only at the moment.

Added a new test Makefile variable $(dllext), which is
instantiated to .dll or .so or .dylib depending on your platform.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Implement assembly test for #5435 in Windows.

Fixes HostOS bug, where the define was not being set.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Finish up asm test #5435 for Mac OS X

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>