19 lines
278 B
Objective-C
19 lines
278 B
Objective-C
smart_pointer_templatevariables
|
|
|
|
d = DiffImContainerPtr_D(create(1234, 5678));
|
|
|
|
if (d.id != 1234)
|
|
error("failed");
|
|
endif
|
|
#if (d.xyz != 5678):
|
|
# error("failed");
|
|
|
|
d.id = 4321;
|
|
#d.xyz = 8765
|
|
|
|
if (d.id != 4321)
|
|
error("failed");
|
|
endif
|
|
#if (d.xyz != 8765):
|
|
# error("failed");
|
|
|