summary refs log tree commit diff stats
path: root/tests/destructor/tmove_objconstr.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes #23524; global variables cannot be analysed when injecting `move` (#23529)ringabout2024-04-241-17/+18
| | | | | | | | | | | | fixes #23524 ```nim proc isAnalysableFieldAccess*(orig: PNode; owner: PSym): bool = ... result = n.kind == nkSym and n.sym.owner == owner and {sfGlobal, sfThread, sfCursor} * n.sym.flags == {} and (n.sym.kind != skParam or isSinkParam(n.sym)) ``` In `isAnalysableFieldAccess`, globals, cursors are already rejected
* new move analyser2 (#20471)Andreas Rumpf2022-10-011-1/+1
| | | | | | | | * produce better code for closure environment creation * new 'first write' analysis; * scope based move analyser * code cleanup Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* style usages part one (openarray => openArray) (#19321)flywind2022-01-041-1/+1
| | | | | * style usages (openArray) * revert doc changes
* testament: error instead of silently ignore invalid targets; remove ↵Timothee Cour2020-12-141-1/+1
| | | | | | | | | | | pointless alias target vs targets; document matrix; DRY (#16343) * testament: error instead of silently ignore invalid targets * s/target/targets/ * fix test; refs #16344 * address comments * Update testament/specs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* injectdestructors fixes and refactor (#14964)Clyybber2020-07-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | * injectdestructors fixes and refactor * Tiny cleanup * Refactor and expand testcase * Closes #14902 by adding testcase * Better naming * Fix test failures * Misc cleanup * Add testcase for #14968 * Better approach; expand testcases * Optimizations and fixes * Add testcase * typo * Tiny cleanup
* progressAraq2020-07-081-1/+1
|
* Fix #14568 (#14583)Clyybber2020-06-071-0/+1
| | | | | | | * Fix #14568 * Add testcase * Fix bogus test * Adapt other failing tests * Declarations are always first writes
* ARC: solves phase ordering problems (#12654)Andreas Rumpf2019-11-141-3/+3
|
* lift destructor for openarray (#12073)cooldome2019-08-281-1/+16
| | | | * destroy for sink openarray
* make tests green againAndreas Rumpf2019-03-051-0/+1
|
* make megatest green againAndreas Rumpf2019-03-051-0/+1
|
* make tests green againAndreas Rumpf2019-03-041-14/+13
|
* isLastRead regression fix (#10463)cooldome2019-01-281-0/+9
| | | | | | * fixes #10462 * add a test
* lots of small changesArne Döring2018-12-111-1/+1
|
* improve testAndrii Riabushenko2018-12-071-3/+8
|
* add testAndrii Riabushenko2018-12-051-1/+10
|
* move movesAndrii Riabushenko2018-11-291-2/+31
|
* Destructors: more moves for tuples (#9808)cooldome2018-11-271-2/+6
|
* Destructors: move into nkTupleConstr and move on tuple unpacking (#9776)cooldome2018-11-221-0/+59
|
* enable destructors for top level statements; needs to be documentedAndreas Rumpf2018-09-241-1/+1
|
* workaround the fact that top level statements currently don't produce ↵Araq2018-08-211-6/+9
| | | | destructor calls
* closes #985Araq2017-11-291-1/+25
|
* destructors: harden the test caseAraq2017-11-291-1/+4
|
* destructors: some improvements for bug #4214: object constructors are moved tooAraq2017-11-291-0/+32
522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776