Changes in src/tests/multiDimension.c [049ead9:cdbfab0]
- File:
-
- 1 edited
-
src/tests/multiDimension.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/multiDimension.c
r049ead9 rcdbfab0 7 7 printf("default constructing\n"); 8 8 (this.a){ 123 }; 9 this.ptr = malloc(sizeof(int));9 this.ptr = (int *)malloc(sizeof(int)); 10 10 } 11 11 … … 13 13 printf("copy constructing\n"); 14 14 (this.a){ other.a }; 15 this.ptr = malloc(sizeof(int));15 this.ptr = (int *)malloc(sizeof(int)); 16 16 } 17 17 … … 19 19 printf("constructing with %d\n", a); 20 20 (this.a){ a }; 21 this.ptr = malloc(sizeof(int));21 this.ptr = (int *)malloc(sizeof(int)); 22 22 } 23 23
Note:
See TracChangeset
for help on using the changeset viewer.