Ignore:
Timestamp:
Oct 19, 2021, 10:31:53 AM (3 years ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
fe18b46
Parents:
7b0e8b7
Message:

String hybrid assignment to unshared now optimizes to overwrite instead of copy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/collections/string-api-coverage.cfa

    r7b0e8b7 r6f7aff3  
    11#include <containers/string.hfa>
     2#include <string_sharectx.hfa>
    23
    34void assertWellFormedHandleList( int maxLen ) { // with(HeapArea)
     
    2526
    2627int main () {
     28
     29    #ifdef STRING_SHARING_OFF
     30    sout | "string sharing disabled";
     31    string_sharectx c = { NO_SHARING };
     32    #endif
     33
    2734    string s = "hello";
    2835    string s2 = "hello";
Note: See TracChangeset for help on using the changeset viewer.