diff options
author | sagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8> | 2010-12-03 22:38:02 (GMT) |
---|---|---|
committer | sagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8> | 2010-12-03 22:38:02 (GMT) |
commit | 9abc7a50ef3cbd89fca9bfc7e7eff60f8b44eb50 (patch) | |
tree | 1b23f6ac6a136d75d532129ef1d1095c3d9e3d5d /test | |
parent | 87ef1f3346ea8764c14ed54c771194dffebfe943 (diff) | |
download | cv2pdb-9abc7a50ef3cbd89fca9bfc7e7eff60f8b44eb50.zip cv2pdb-9abc7a50ef3cbd89fca9bfc7e7eff60f8b44eb50.tar.gz cv2pdb-9abc7a50ef3cbd89fca9bfc7e7eff60f8b44eb50.tar.bz2 |
now converting only class pointers to references, not pointers to structs or void
Diffstat (limited to 'test')
-rw-r--r-- | test/cvtest.d | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/cvtest.d b/test/cvtest.d index 5bdc819..283e972 100644 --- a/test/cvtest.d +++ b/test/cvtest.d @@ -207,6 +207,17 @@ A outer_func(int x) return new A;
}
+void voidpointers(ubyte* p)
+{
+ void* vp = cast(void*) p;
+ const(void)* const_vp = cast(const(void)*) p;
+ const(void*) const_vp2 = cast(const(void*)) p;
+
+ int* ip = cast(int*) p;
+ const(int)* const_ip = cast(const(int)*) p;
+ const(int*) const_ip2 = cast(const(int*)) p;
+}
+
int arrays()
{
int[] iarr;
@@ -286,6 +297,7 @@ int main(char[][]argv) long lng = 3;
ulong ulng = 4;
+ voidpointers(null);
arrays();
outer_func(3);
A.outer_func(3);
|