summaryrefslogtreecommitdiffstats
path: root/test/cvtest.d
diff options
context:
space:
mode:
authorsagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2010-06-04 07:26:26 (GMT)
committersagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2010-06-04 07:26:26 (GMT)
commit259c6e72e8ed783d224648e9d0012adb6398e5b0 (patch)
tree4a6c84d74c6e3259c4f6657ec366684b8d008a60 /test/cvtest.d
parent1f7f18ddaa3298b5d2a21e9dfb9cb18ad95d58a9 (diff)
downloadcv2pdb-259c6e72e8ed783d224648e9d0012adb6398e5b0.zip
cv2pdb-259c6e72e8ed783d224648e9d0012adb6398e5b0.tar.gz
cv2pdb-259c6e72e8ed783d224648e9d0012adb6398e5b0.tar.bz2
Version 0.13
* adapted to mspdb100.dll which comes with VS2010 * tweaked autoexp.dat modifications to be more stable with uninitialized data * autoexp.snippet now split into two files
Diffstat (limited to 'test/cvtest.d')
-rw-r--r--test/cvtest.d39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/cvtest.d b/test/cvtest.d
index f504500..5deae42 100644
--- a/test/cvtest.d
+++ b/test/cvtest.d
@@ -156,6 +156,41 @@ version(D2)
}
}
+class A
+{
+ static int outer_func(int x)
+ {
+ int inner_func(int y)
+ {
+ return x * y;
+ }
+ return inner_func(2);
+ }
+}
+
+A outer_func(int x)
+{
+ int inner_func(int y)
+ {
+ return x * y;
+ }
+ inner_func(3);
+ return new A;
+}
+
+int arrays()
+{
+ int[] iarr;
+ iarr ~= 4;
+
+ void[] varr;
+ varr = new char[102];
+
+ const void[] cvarr;
+
+ return iarr.length;
+}
+
int main2(char[][]argv)
{
enum_name inst_enum = enum_name.kEnum2;
@@ -208,6 +243,10 @@ int main(char[][]argv)
{
long lng = 3;
+ arrays();
+ outer_func(3);
+ A.outer_func(3);
+
main2(argv);
writefln("Hello world");