Changeset 10b5970 for tests/raii
- Timestamp:
- Jan 7, 2025, 3:22:19 PM (3 months ago)
- Branches:
- master
- Children:
- 190a833
- Parents:
- 70670e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/raii/partial.cfa ¶
r70670e7 r10b5970 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.