Changeset d60a4c2 for tests/raii
- Timestamp:
- Jan 11, 2025, 5:48:46 PM (14 months ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- f886608
- Parents:
- 7d65715f (diff), 32a119e9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
tests/raii/partial.cfa (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/raii/partial.cfa
r7d65715f rd60a4c2 12 12 // Declaring your own empty ctor leaves an autogen dtor usable 13 13 struct thing1 {}; 14 void ?{}( thing1 & this) { printf( "custom ctor\n"); }14 void ?{}( thing1 & ) { printf( "custom ctor\n"); } 15 15 void test1() { 16 16 printf("test1\n"); … … 20 20 // Declaring your own empty ctor and dtor leaves an autogen copy ctor usable 21 21 struct thing2 {}; 22 void ?{}( thing2 & this) { printf( "custom ctor\n"); }23 void ^?{}( thing2 & this) { printf( "custom dtor\n"); }22 void ?{}( thing2 & ) { printf( "custom ctor\n"); } 23 void ^?{}( thing2 & ) { printf( "custom dtor\n"); } 24 24 void test2() { 25 25 printf("test2\n"); … … 37 37 38 38 struct thing456 {}; 39 void ?{}( thing456 & this) { printf( "custom ctor\n"); }39 void ?{}( thing456 & ) { printf( "custom ctor\n"); } 40 40 void ?{}( thing456 &, thing456 ) = void; 41 41 thing456 & ?=?( thing456 &, thing456 ) = void; 42 void ^?{}( thing456 & this) { printf( "custom dtor\n"); }42 void ^?{}( thing456 & ) { printf( "custom dtor\n"); } 43 43 44 44 struct wrapper1 { thing456 x; }; … … 80 80 // Declaring your own empty ctor leaves an autogen dtor usable 81 81 struct thing1 {}; 82 void ?{}( thing1 & this) { printf( "custom ctor\n"); }82 void ?{}( thing1 & ) { printf( "custom ctor\n"); } 83 83 void test1() { 84 84 printf("test1\n"); … … 88 88 // Declaring your own empty ctor and dtor leaves an autogen copy ctor usable 89 89 struct thing2 {}; 90 void ?{}( thing2 & this) { printf( "custom ctor\n"); }91 void ^?{}( thing2 & this) { printf( "custom dtor\n"); }90 void ?{}( thing2 & ) { printf( "custom ctor\n"); } 91 void ^?{}( thing2 & ) { printf( "custom dtor\n"); } 92 92 void test2() { 93 93 printf("test2\n"); … … 105 105 106 106 struct thing456 {}; 107 void ?{}( thing456 & this) { printf( "custom ctor\n"); }107 void ?{}( thing456 & ) { printf( "custom ctor\n"); } 108 108 void ?{}( thing456 &, thing456 ) = void; 109 109 thing456 & ?=?( thing456 &, thing456 ) = void; 110 void ^?{}( thing456 & this) { printf( "custom dtor\n"); }110 void ^?{}( thing456 & ) { printf( "custom dtor\n"); } 111 111 112 112 struct wrapper1 { thing456 x; };
Note:
See TracChangeset
for help on using the changeset viewer.