summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix `is` with generic types; fix `genericHead(Foo[T])` (#13303)Timothee Cour2020-02-092-2/+51
| | | | | * fix #9855, fix #9855, fix genericHead * render TTypeKind via toHumanStr
* fixes #13314 (#13372)Andreas Rumpf2020-02-091-1/+25
|
* Add sideEffect pragma to importC procs in posix, winlean and time module ↵Tomohiro2020-02-081-0/+10
| | | | | | | | | (#13370) * Add sideEffect pragma to procs in winlean * Add sideEffect pragma to procs in posix * Add test for #13306 * Add sideEffect pragma to procs in times * Fixes #13306
* Revert "printing float values will have one more digit. (#13276) [backport]" ↵Timothee Cour2020-02-088-42/+38
| | | | | (#13363) This reverts commit b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe.
* fix #6736: templates in unittest now show actual value (#13354)Miran2020-02-071-0/+25
|
* printing float values will have one more digit. (#13276) [backport]Arne Döring2020-02-078-38/+42
| | | | * printing float values will have one more digit. Fixes #13196
* testament: introduce 'matrix' for testing multiple options (#13343)Miran2020-02-071-1/+3
|
* miscellaneous bug fixes (part 3) (#13304)Timothee Cour2020-02-071-1/+1
| | | | | | | | | | * fix deprecation; fix indentation * git clone: use -q * fix Warning: pragma before generic parameter list is deprecated; fix typo * bugfix: sysTypeFromName("float64") was never cached
* fix #13182: `proc fun(a: varargs[Foo, conv])` now can be overloaded (#13345) ↵Timothee Cour2020-02-071-0/+47
| | | | [backport]
* fixes #13269 (#13344)Andreas Rumpf2020-02-071-0/+14
|
* fix #13349 regression: isNamedTuple now works with generic tuples (#13350)Timothee Cour2020-02-071-0/+5
|
* [backport] -d:danger should imply -d:release (#13336)Miran2020-02-051-0/+13
|
* Fixed codegen for constant cstring with --gc:arc (#13326)Ico Doornekamp2020-02-041-0/+16
| | | | | | * Fixed codegen for constant cstring with --gc:arc, fixes #13321 * Added test for #13321
* enable testing -d:nimHasLibFFI mode (#13091)Timothee Cour2020-02-042-82/+83
|
* fix #13132 tnetdial (#13318)Timothee Cour2020-02-041-2/+2
|
* Fix capture for object types (#13315)Clyybber2020-02-021-2/+16
| | | | | | * Fix capture for object|tuple|... types * Add test case
* miscellaneous bug fixes (#13291)Timothee Cour2020-01-301-0/+9
| | | | | | | | * fix for emscripten etc * add testcase for #13290 * replace deprecated isNilOrWhitespace
* Repr v2 progress (#13268)cooldome2020-01-282-1/+35
| | | | | | | | | | * progress on repr_v2 * repr progress * add ref objects with distrinct * fix failing tests
* TlSF Alloctor: use less memory for --gc:arc (#13280)Andreas Rumpf2020-01-281-0/+2
|
* fixes #13281 (#13282)cooldome2020-01-281-1/+17
| | | | | | * fixes ##13281 * add comment to test
* ARC: remove unnecessary codeAraq2020-01-261-4/+3
|
* contributing docs: symbols need package prefix; changed allocStats to ↵Timothee Cour2020-01-258-8/+8
| | | | nimAllocStats (#13247)
* Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses ↵Ico Doornekamp2020-01-239-56/+31
| | | | | | | | | | | | | | | | | | | | | | | | | allocShared0. (#13190) * Cleanup, remove lib/system/allocators.nim. seqs_v2 and strs_v2 now use allocShared0 by default. * Fixed -d:useMalloc allocShared / reallocShared / deallocShared. These now use the alloc/dealloc/realloc implementation that also takes care of zeroing memory at realloc. * Removed debug printfs * Removed unpairedEnvAllocs() from tests/destructor/tnewruntime_misc * More mmdisp cleanups. The shared allocators do not need to zero memory or throw since the regular ones already do that * Introduced realloc0 and reallocShared0, these procs are now used by strs_v2 and seqs_v2. This also allowed the -d:useMalloc allocator to drop the extra header with allocation length. * Moved strs_v2/seqs_v2 'allocated' flag into 'cap' field * Added 'getAllocStats()' to get low level alloc/dealloc counters. Enable with -d:allocStats * *allocShared implementations for boehm and go allocators now depend on the proper *allocImpl procs
* Unexport even more symbols (#13214)alaviss2020-01-231-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * system/gc: don't export markStackAndRegisters * compiler/cgen: unexport internal symbols As these functions are Nim-specific walkaround against C's optimization schemes, they don't serve any purpose being exported. * compiler/cgen: don't export global var unless marked * compiler/ccgthreadvars: don't export threadvar unless marked * tests/dll/visibility: also check for exports This ensure that these changes don't break manual exports. * compiler/cgen: hide all variables created for constants * compiler/ccgtypes: don't export RTTI variables * compiler/ccgexprs: make all complex const static * nimbase.h: fix export for windows * compiler/cgen, ccgthreadvars: export variables correctly For C/C++ variables, `extern` means that the variable is defined in an another unit. Added a new N_LIB_EXPORT_VAR to correctly export variables.
* fix lots of bugs with parentDir, refs #8734 (#13236)Timothee Cour2020-01-231-5/+5
|
* VM: allow overriding MaxLoopIterations without rebuilding nim (#13233)Timothee Cour2020-01-231-1/+1
|
* new os.isRelativeTo (#13212)Timothee Cour2020-01-231-0/+12
|
* fix #13211 relativePath("foo", ".") (#13213)Timothee Cour2020-01-211-0/+4
|
* fix range[enum] type conversion (#13204) [backport]Jasper Jenkins2020-01-201-0/+33
|
* compiler/ccgtypes: hide exportc proc unless it has dynlib (#13199)alaviss2020-01-201-0/+19
| | | | | This hides most of stdlib's internal functions from resulting binaries/libraries, where they aren't needed on *nix. Static libraries are not affected by this change (visibility doesn't apply to them).
* fixes #13195 (#13198)cooldome2020-01-201-0/+25
| | | | | | | | * fixes #13195 * extra fix * fix typo
* fixes #13110 (#13197)Andreas Rumpf2020-01-191-1/+4
|
* Revert "fixes #13195"Andrii Riabushenko2020-01-191-25/+0
| | | | This reverts commit cd7904f2b29e623998a1d32ee726d000f56fc5ce.
* revert last commitAndrii Riabushenko2020-01-191-0/+25
|
* more on arc codegen (#13178)cooldome2020-01-192-8/+30
| | | | | | | | | | | | * arc codegen for union type * add more tests * fix offsetof * fix tsizeof test * fix style
* maybe: allows optional chaining of field access and indexing when LHS i snil ↵Timothee Cour2020-01-181-0/+82
| | | | | | | | | (#13023) * maybe: allows optional chaining * fix tools/kochdocs.nim * improve semantics to distinguish valid from invalid values * for now, wrapnil, isValid, unwrap are not exported
* make sink operator optional (#13068)cooldome2020-01-172-12/+4
| | | | | | | | | | | | | | | | * make sink operator optional * bug fix, add changelog entry * Trigger build * fix one regression * fix test * Trigger build * fix typos
* ARC works for async on Windows (#13179)Andreas Rumpf2020-01-171-0/+69
|
* make case-object transitions explicit, make unknownLineInfo a const, replace ↵Jasper Jenkins2020-01-171-1/+0
| | | | a few magic numbers with consts (#13170)
* fixes #13095 (#13181)cooldome2020-01-171-0/+20
| | | | | | * fixes #13095 * fix typo
* fix tsizeof3 for aarch64 (#13169)Jasper Jenkins2020-01-162-20/+20
|
* Working towards arc codegen (#13153)cooldome2020-01-161-0/+57
| | | fixes #13029
* style fix: change 'JS' to 'js' to make it consistent (#13168)Miran2020-01-162-2/+2
|
* ARC: misc bugfixes (#13156)Andreas Rumpf2020-01-152-0/+210
| | | | | | | | * fixes #13102 * closes #13149 * ARC: fixes a move optimizer bug (there are more left regarding array and tuple indexing) * proper fix; fixes #12957 * fixes yet another case object '=' code generation problem
* fixes #9674 [backport] (#13143)Andreas Rumpf2020-01-141-1/+9
|
* fixes #13105 (#13138)Andreas Rumpf2020-01-141-0/+18
|
* fixes #13119 (#13128)Andreas Rumpf2020-01-142-2/+14
| | | | | * fixes #13119 * fixes a regression
* fixes #13112 (#13127)Andreas Rumpf2020-01-131-0/+6
| | | | | | * improve line error information * fixes #13112
* fixes #13122 (#13126)Andreas Rumpf2020-01-133-4/+13
| | | | | | * fixes #13122 * moved tests to where they belong
* fix rtti sizeof for varargs in global scope (#13125) [backport]Jasper Jenkins2020-01-131-0/+9
|