Changeset ddbde34
 Timestamp:
 May 11, 2017, 2:04:06 PM (6 years ago)
 Branches:
 aaronthesis, armeh, cleanupdtors, deferred_resn, demangler, enum, forallpointerdecay, jacob/cs343translation, jenkinssandbox, master, newast, newastuniqueexpr, newenv, no_list, persistentindexer, pthreademulation, qualifiedEnum, resolvnew, with_gc
 Children:
 a28bc02
 Parents:
 9923861
 Location:
 src/tests
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

src/tests/.expect/memberCtors.txt
r9923861 rddbde34 16 16 assigning int: 0 0 17 17 end construct A 18 copy constructing int: 0 19 copy constructing int: 0 20 begin copy construct A 21 copy construct this>x 22 copy constructing int: 1001 23 assign this>y 24 copy constructing int: 0 25 destructing int: 0 26 destructing int: 0 27 end copy construct A 28 begin ?=? A 29 copy constructing int: 1001 30 destructing int: 1001 31 destructing int: 1001 32 copy constructing int: 0 33 destructing int: 0 34 destructing int: 0 35 copy constructing int: 0 36 destructing int: 0 37 destructing int: 0 38 end ?=? A 39 copy constructing int: 0 40 copy constructing int: 0 41 begin copy construct A 42 copy construct this>x 43 copy constructing int: 1001 44 assign this>y 45 copy constructing int: 0 46 destructing int: 0 47 destructing int: 0 48 end copy construct A 49 destructing int: 0 50 destructing int: 0 51 destructing int: 1001 52 destructing int: 0 53 destructing int: 0 54 destructing int: 1001 18 55 construct b>a1 19 56 constructing int … … 36 73 copy constructing int: 1000 37 74 assign this>y 38 end copy construct A 39 copy constructing int: 0 40 copy constructing int: 0 41 begin copy construct A 42 copy construct this>x 43 copy constructing int: 1001 44 assign this>y 45 end copy construct A 46 copy constructing int: 0 47 copy constructing int: 0 48 begin copy construct A 49 copy construct this>x 50 copy constructing int: 0 51 assign this>y 75 copy constructing int: 0 76 destructing int: 0 77 destructing int: 0 78 end copy construct A 79 copy constructing int: 0 80 copy constructing int: 0 81 begin copy construct A 82 copy construct this>x 83 copy constructing int: 1001 84 assign this>y 85 copy constructing int: 0 86 destructing int: 0 87 destructing int: 0 88 end copy construct A 89 copy constructing int: 0 90 copy constructing int: 0 91 begin copy construct A 92 copy construct this>x 93 copy constructing int: 0 94 assign this>y 95 copy constructing int: 0 96 destructing int: 0 97 destructing int: 0 52 98 end copy construct A 53 99 End of main … … 60 106 assigning int: 0 0 61 107 end construct A 108 copy constructing int: 0 109 copy constructing int: 0 110 begin copy construct A 111 copy construct this>x 112 copy constructing int: 999 113 assign this>y 114 copy constructing int: 0 115 destructing int: 0 116 destructing int: 0 117 end copy construct A 118 begin ?=? A 119 copy constructing int: 999 120 destructing int: 999 121 destructing int: 999 122 copy constructing int: 0 123 destructing int: 0 124 destructing int: 0 125 copy constructing int: 0 126 destructing int: 0 127 destructing int: 0 128 end ?=? A 129 copy constructing int: 0 130 copy constructing int: 0 131 begin copy construct A 132 copy construct this>x 133 copy constructing int: 999 134 assign this>y 135 copy constructing int: 0 136 destructing int: 0 137 destructing int: 0 138 end copy construct A 139 destructing int: 0 140 destructing int: 0 141 destructing int: 999 142 destructing int: 0 143 destructing int: 0 144 destructing int: 999 62 145 destructing int: 0 63 146 destructing int: 0 … … 80 163 assigning int: 0 0 81 164 end construct A 165 copy constructing int: 0 166 copy constructing int: 0 167 begin copy construct A 168 copy construct this>x 169 copy constructing int: 999 170 assign this>y 171 copy constructing int: 0 172 destructing int: 0 173 destructing int: 0 174 end copy construct A 175 begin ?=? A 176 copy constructing int: 999 177 destructing int: 999 178 destructing int: 999 179 copy constructing int: 0 180 destructing int: 0 181 destructing int: 0 182 copy constructing int: 0 183 destructing int: 0 184 destructing int: 0 185 end ?=? A 186 copy constructing int: 0 187 copy constructing int: 0 188 begin copy construct A 189 copy construct this>x 190 copy constructing int: 999 191 assign this>y 192 copy constructing int: 0 193 destructing int: 0 194 destructing int: 0 195 end copy construct A 196 destructing int: 0 197 destructing int: 0 198 destructing int: 999 199 destructing int: 0 200 destructing int: 0 201 destructing int: 999 82 202 destructing int: 0 83 203 destructing int: 0 
src/tests/memberCtors.c
r9923861 rddbde34 53 53 } // z never constructed  will be automatically copy constructed 54 54 55 A ?=?(A * this, A other) { 56 printf("begin ?=? A\n"); 57 this>x = other.x; 58 this>y = other.y; 59 this>z = other.z; 60 printf("end ?=? A\n"); 61 return *this; 62 } 63 55 64 struct B { 56 65 A a1, a2, a3;
Note: See TracChangeset
for help on using the changeset viewer.