summary refs log tree commit diff stats
path: root/tests/ccgbugs
Commit message (Collapse)AuthorAgeFilesLines
* Fix #14160 (#14161)Clyybber2020-04-301-0/+15
| | | | | * Fix #14160 * Add testcase
* fix #13902 distinct uint64 type corruption on 32-bit with borrow (#13907) ↵Timothee Cour2020-04-081-0/+12
| | | | | | | [backport:1.2] * fix #13902 distinct uint64 type corruption on 32-bit with borrow Co-authored-by: Timothee Cour <timothee.cour2+lightsail@gmail.com>
* fix some codegen bugs: NIM_BOOL, NIM_STATIC_ASSERT, --passc:-std=... (etc) ↵Timothee Cour2020-04-072-0/+17
| | | | | | | | (#13798) * fix cgen bool D20200328T203812 * --passc:std=c++17 (etc) now works instead of silently ignored * document caveats for NIM_NIL
* faster CIs (#13803)Miran2020-03-301-27/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ttables: smaller table, 5x speedup * thavlak: less iterations, less loops; 30% speedup * tasyncclosestall: shorter timeout; 35% speedup * gcleak4: less iterations, 2x speedup * ttimes: remove deprecated stuff * tdangerisrelease: remove cpp backend, 3x speedup * tfrexp1: smaller range, 2x speedup * trtree: fix warnings, less iterations, 6x speedup * tasyncawait_cyclebreaker: smaller swarm size; 2x speedup * trealloc: smaller number of iterations; 10x speedup * towned_binary_tree: less iterations, 4x speedup * tclosure: remove unused code, less iterations; 2x speedup * twaitany: less durations; 1.4x speedup * tasync_misc: less iterations, 2x speedup * t8535: smaller sleep, 1.5x speedup * tmanyjoin: smaller sleep, 2x speedup * t12221: shorter sleeps, removed two slower tests; 1.6x speedup * tfuturestream: smaller sleep; 1.5x speedup * growobjcrash: less iterations; 2x speedup * ttryrecv: smaller sleep; 1.5x speedup * treusetvar: less threads; 2x speedup * delete tthreadanalysis2, basically a duplicate of tthreadanalysis * t7758: less iterations, 1.5x speedup * tasyncawait: smaller swarm, less messages; 1.5x speedup * tjsandnativeasync: smaller sleep, 1.5x speedup * tpendingcheck: smaller sleep, 1.5x speedup * remove rodfiles test category * move tseq from its own category to 'collections' category * remove unneeded tests and helpers from 'assert' category * stdlib: merge tbitops2 into tbitops * remove 'trepr2' from 'stdlib' cat * merge 'tstreams' into one file * remove 'tinefficient_const_table' from 'ccbugs' cat * merge 'tcollections_to_string' into 'tcollections' * tblocking_channel: smaller sleep, small speedup * tconvexhull: less iterartions; 1.2x speedup * merge 'tdeepcopy2' into 'tdeepcopy' * merge 'tdisjoint_slice2' into 'tdisjoint_slice1' * tmissing_deepcopy: smaller sequence * tsendtwice: smaller arrays; 5x speedup * remove 'tindexerrorformatbounds' * disable multimethod tests * remove 'gc:none' and 'refc' without 'd:useRealtimeGC' from gc tests * koch.nim: bootstrap just with '-d:release', no need for 'csource' * add github workflow for documentation * testament: no need for 8 sub-second decimals
* fixes #13281 (#13282)cooldome2020-01-281-1/+17
| | | | | | * fixes ##13281 * add comment to test
* style fix: change 'JS' to 'js' to make it consistent (#13168)Miran2020-01-161-1/+1
|
* better support for PROGMEM like annotations for lets/vars; fixes #12216 (#12799)Andreas Rumpf2019-12-051-0/+11
|
* remove unused imports from testsnarimiran2019-11-062-3/+2
|
* remove deprecated procs (#12535)Andreas Rumpf2019-11-051-1/+1
|
* refactor illegal iterator assignment detection (#12212)Arne Döring2019-10-112-27/+14
| | | | | | * refactor illegal iterator assignment detection * delete crappy test
* revert #12100; typeof(nil) is weird enough, don't allow it as the return typeAndreas Rumpf2019-09-021-3/+0
|
* Allow typeof(nil) as a return typeAlbert Safin2019-08-311-1/+4
|
* Allow typeof(nil) as generic parameter (#11869)Oscar Nihlgård2019-08-031-2/+11
|
* fixes #11525Andreas Rumpf2019-06-261-1/+38
|
* make tests green againAraq2019-05-271-3/+2
|
* Allow void macro result (#11286)Arne Döring2019-05-211-1/+1
| | | | | * allow void macro result * add test for void macro result type
* closes #9825Araq2019-05-101-0/+11
|
* Add testcase for #9684 (#11221)Clyybber2019-05-101-0/+11
|
* Fix #9844 (#11216)Clyybber2019-05-091-1/+15
| | | | * Fixes #9844
* fixes #9578 (#11176)jcosborn2019-05-066-0/+108
| | | | | | * fixes #9578 * fixed and expanded test
* fixes #9403Araq2019-05-051-1/+20
|
* iterators: several small fixes (#11162)Miran2019-05-041-1/+1
| | | | | | * fix pairs, mpairs, mitems for cstring for JS backend * add mutation check for pairs and mpairs for strings and seqs * change the assertion message - modifying (changing elements) is not a problem, changing the length is
* Fix varargs int32 (#11054)Arne Döring2019-04-181-0/+10
| | | | | * fixes #10999 * adds a test for #10999
* remove shadow warning, fixes #10732 (#11039)Miran2019-04-171-1/+1
|
* Fix edge case in type hashing (#10601) [backport]LemonBoy2019-02-081-0/+15
| | | | Empty types introduced by a template produced the same hash of the "clean" type sharing the same name.
* properly deprecate parseopt2 (#10452)Miran2019-01-251-2/+2
|
* add `isNamedTuple`; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) ↵Timothee Cour2019-01-081-3/+3
| | | | | | | | | | | | | which leaked implementation detail (#10070) * add `isNamedTuple`; make $(1, 2) be (1, 2) instead of leaking implementation detail (Field0: 1, Field1: 2) fixes this: #8670 (comment) /cc @alehander42 @Vindaar @mratsim * Note: isNamedTuple is useful in other places, eg #10010 (comment) * move isNamedTuple to helpers.nim to avoid exposing new symbol to system.nim * remove workaround in tests/vm/tissues.nim failing test now that #10218 was makes it work
* Dead code elimination for entire modules and their init procs if empty (#10032)cooldome2018-12-301-0/+2
| | | | | | * fixes #9798 * Change order of write modules * Move datInit calls ahead of initStackBottom
* lots of small changesArne Döring2018-12-116-10/+12
|
* megatest checks output and nimoutArne Döring2018-12-112-3/+2
|
* megatest can be executedArne Döring2018-12-111-16/+0
|
* require errormsg to be specified before file.Arne Döring2018-12-111-4/+4
|
* join simple testArne Döring2018-11-231-10/+0
|
* make run the default action of a test in testerArne Döring2018-11-236-2/+31
|
* make more tests green for C++; refs #7870Araq2018-10-304-2/+4
|
* make thavlak and tmarkerproc_regression tests take fewer iterations in order ↵Araq2018-10-171-3/+3
| | | | to speedup the CIs
* Merge tests into a larger file (part 5 of ∞) (#9368)Miran2018-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * merge magics * merge metatype tests * merge method tests * merge objects tests * change `import future` to `import sugar` Nim in Action tests are left with `import future`, to ensure compatibility. * merge overload tests * merge proc tests * merge procvar tests * merge range tests * merge seq tests * merge sets tests * remove wrong assert from `tsets3` * fix `jsTests` * better fix
* fixes #9297 (#9298)cooldome2018-10-111-1/+41
| | | | | | * fixes #9297 * improve spacing
* Fix wrong heuristic in codegen (#9293)LemonBoy2018-10-111-0/+22
| | | | | A bare return may trigger the insertion of a genericReset. Fixes #9286
* Codegen fix for procs taking type(nil) (#9231)xzfc2018-10-091-0/+6
|
* Fix codegen for some set operationsLemonBoy2018-09-281-0/+12
| | | | | | | Taking the LHS type when a temporary result value was needed lead to bad code being generated if we get a tyRef. Fixes #9098
* Merge pull request #8746 from LemonBoy/nil-optsAndreas Rumpf2018-09-231-0/+13
|\ | | | | nil strings are movable
| * nil strings are movableLemonBoy2018-09-221-0/+13
| |
* | Merge pull request #8983 from cooldome/codegen_crashAndreas Rumpf2018-09-181-1/+34
|\ \ | | | | | | Fixes 8979
| * | Fixes 8979Andrii Riabushenko2018-09-161-1/+34
| | |
* | | Fix codegen for set[T] parametersLemonBoy2018-09-151-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Sometimes sets are materialized as arrays and we must treat them as such: the CPP backend is pickier than the C one and would sometimes produce invalid code. Fixes #8967
* | | Fix hashing for codegenProc (sic) typesLemonBoy2018-09-141-0/+10
| | | | | | | | | | | | | | | | | | | | | Since the name mangling is inhibited we should take the user-supplied name during the sighash computation. Fixes #8964
* | | Fix semantic pass with borrowed magic procs (#8945)LemonBoy2018-09-111-0/+8
| | | | | | | | | Reported by pqflx3 on the forum.
* | | Always emit hti object types if needed (#8940)LemonBoy2018-09-111-0/+8
|/ / | | | | | | | | | | | | | | The compiler is now smart enough to emit types only if needed without all the importc tricks. This also fixes a codegen bug where, if all the stars align correctly, typeinfo doesn't include any definition of `TNimType` but uses it. Found by @skilchen in #8938
* | Allow wCodegenDecl on lambdas (#8892)LemonBoy2018-09-071-0/+13
| |