about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2011-10-20Change run-pass/lots-a-fail.rs from xfail-fast to xfail-win32Brian Anderson-1/+1
All failing tasks leak on windows now
2011-10-19Fail nicer when the parser doesn't find an expected string literalBrian Anderson-0/+3
Closes #1028
2011-10-18Fix parse error in constrained-type-missing-check.rsMatt Brubeck-2/+2
2011-10-18Immutable and mutable? are covariant on their inner typesBrian Anderson-0/+26
Whereas [mutable T] is invariant with respect to T, [T] and [mutable? T] are covariant with respect to T.
2011-10-18Add a math module to the standard libMarijn Haverbeke-0/+35
I need some rudimentary stdlib stuff for the tutorial. Closes #1042
2011-10-17Enforce variance rules for mutable typesBrian Anderson-0/+92
2011-10-17Don't allow assignment to mutable-wha?Brian Anderson-0/+64
2011-10-17[Lib] int.rs, uint.rs: added max_value, min_valueDavid Rajchenbach-Teller-0/+14
2011-10-13Don't allow the value of generic bare functions to be takenBrian Anderson-0/+23
Issue #1038
2011-10-13Add a test that generic bare functions can be boundBrian Anderson-0/+10
Issue #1022
2011-10-13Properly fill single-variant zero-arg tag values.Marijn Haverbeke-0/+10
Closes #1034. Closes #1035.
2011-10-12reimplement some of the unsafe stuff which got lostNiko Matsakis-0/+9
- blocks inherit unsafety - remove the --check-unsafe flag - add unsafe annotations where needed to get things to compile
2011-10-12new testNiko Matsakis-0/+11
2011-10-12make compiler emit more than 1 error in the case of unsafeNiko Matsakis-5/+4
2011-10-12prohibit ptr deref unless in unsafe codeNiko Matsakis-0/+11
2011-10-12fix error msgNiko Matsakis-1/+0
2011-10-12add some new testsNiko Matsakis-1/+23
2011-10-12convert a few tests from unsafe fns to fns with unsafe bodiesNiko Matsakis-3/+3
2011-10-12add pass to check that unsafe fns cannot be used as valuesNiko Matsakis-0/+9
2011-10-12all tests passNiko Matsakis-3/+3
2011-10-12all tests passNiko Matsakis-4/+4
2011-10-12continue to annotate functions as unsafe where neccessaryNiko Matsakis-6/+6
2011-10-12add unsafe tags into various points in the translation chainsNiko Matsakis-3/+3
and so forth
2011-10-12make treatment of unchecked/unsafe blocks more uniformNiko Matsakis-0/+0
also repair various errors in the parser related to such blocks. rename checked_blk to default_blk to reflect the fact that it inherits its purity from the surrounding context.
2011-10-12Revert "Test for #954"Brian Anderson-4/+0
This reverts commit 7edb0438895cc7c54a9c4a8c07daa0ebf13bbb36.
2011-10-12Test for #954Brian Anderson-0/+4
2011-10-12Ignore stdtest::os::test_setenv. Fails periodically on macBrian Anderson-0/+1
2011-10-12skip test, remove whitespaceNiko Matsakis-0/+1
2011-10-12make treatment of unchecked/unsafe blocks more uniformNiko Matsakis-1/+8
also repair various errors in the parser related to such blocks. rename checked_blk to default_blk to reflect the fact that it inherits its purity from the surrounding context.
2011-10-12fix test to include a main() functionNiko Matsakis-0/+3
2011-10-12it is also legal to call unsafe functions from other unsafe functionsNiko Matsakis-0/+10
2011-10-12Add unsafe blocks, unsafe functions, and two rudimentary testsNiko Matsakis-0/+19
related to them
2011-10-12Make build_environment and trans_bind_thunk GEP bound arguments the sameBrian Anderson-0/+16
These functions both use GEP_tup_like to get at the arguments bound to the environment, but they were starting from a different 'level' of the environment-box structure. Frighteningly, this was leading to them having different opinions of how the bound arguments were aligned in some cases.
2011-10-12[Tests] added float testsDavid Rajchenbach-Teller-0/+20
2011-10-11Revert "Revert "Add a test case for #898. Closes #898.""Lindsey Kuper-0/+11
This reverts commit e305ab38518352d934c081687a6cdccd5af4dfb6. Oops again. Reverting a mistaken revert.
2011-10-11Revert "Add a test case for #898. Closes #898."Lindsey Kuper-11/+0
This reverts commit f480203fdd4d8b498453c1f7cc0ad4f59d87c596. Oops. This patch requires people to bump their LLVM version.
2011-10-11Add a test case for #898. Closes #898.Brian Anderson-0/+11
Seems to have been fixed.
2011-10-11Add a test for assignment of bare functionsBrian Anderson-0/+7
Issue #1022
2011-10-11Add a test that bare functions are word-sizedBrian Anderson-0/+9
Issue #1022
2011-10-11Add a test that uses a hypothetical bare-fn spawn signatureBrian Anderson-0/+16
Issue #1022
2011-10-11Add a test for higher-order bare functionsBrian Anderson-0/+15
Issue #1022
2011-10-11Add a test for binding bare functionsBrian Anderson-0/+9
Issue #1022
2011-10-11Don't allow bind to produce bare functionsBrian Anderson-0/+9
Issue #1022
2011-10-11Add a temporary syntax for bare functionsBrian Anderson-0/+13
Bare functions will be represented as 'fn#' until they're implemented. Then we'll switch it over to just 'fn'. Issue #1022
2011-10-10Adjust function signatures to allow for vecs being immediateMarijn Haverbeke-5/+5
Some code was relying on vectors being implicitly by-reference (as non-immediate value). This adds the necessary &&-sigils. Closes #1021
2011-10-10Make vectors and strings immediates againMarijn Haverbeke-1/+1
There's no good reason to force them to be spilled anymore. Some pieces of trans become more elegant this way, and less stack allocs and load/stores are needed. Issue #1021
2011-10-07Fix up test for last commitMarijn Haverbeke-1/+1
2011-10-07Make 1-1 parse againMarijn Haverbeke-0/+6
Issue #954 This is not a very elegant fix -- we should probably do something with constant folding to handle negative-int alt patterns in the future.
2011-10-07Add tests for programs that are invalid by arg-passing-styleMarijn Haverbeke-0/+9
Closes #1008
2011-10-07Add pass-by-ref annotation to the tests to make them typecheckMarijn Haverbeke-47/+49
Issue #1008