summary refs log tree commit diff stats
path: root/tests/ccgbugs
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Codegen fix for function pointers marked inline (#8866)LemonBoy2018-09-042-0/+27
| | | | | | | | Fixes #5345 Fixes #5701
* | fixes #8781 by appending "_U" instead of 'U' (#8787)Vindaar2018-08-271-0/+25
|/
* make more tests green; system.repr does not produce 'nil' for strings and ↵Araq2018-08-221-2/+2
| | | | seqs anymore
* Fix unsound transform pass (#8633)LemonBoy2018-08-141-0/+8
| | | | | When a `var openArray[T]` function parameter goes trough the `transformAddrDeref` pass we may lose the `var` specifier, leading to nasty crashes at runtime.
* Fixes 8616 (#8617)LemonBoy2018-08-123-0/+16
| | | | | | | | * Don't leave dangling forward references to types Fixes #8616 * Add a test case for #8616
* fixes #7392 (#7395)cooldome2018-03-232-1/+8
|
* Fixes #7363 (#7371)cooldome2018-03-201-0/+14
|
* Codegen: use type forward declarations more aggresively. Fixes #7339 (#7340)cooldome2018-03-162-0/+27
| | | Do not emit object definition it if used only by ref or ptr
* fixes #7332 (#7341)andri lim2018-03-161-0/+29
|
* fixes #6960Andreas Rumpf2018-02-111-0/+31
|