summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Makefile2
-rw-r--r--test/cvtest.d21
2 files changed, 21 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile
index 6bed715..43e0f17 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -6,7 +6,7 @@ SRC = cvtest.d
DBGDIR = ..\bin\Debug
RELDIR = ..\bin\Release
-DMD = c:\l\dmd-2.030\windows\bin\dmd.exe
+DMD = c:\l\dmd-2.040\windows\bin\dmd.exe
# DMD = c:\l\dmd-1.045\windows\bin\dmd.exe
CV2PDB_DBG = $(DBGDIR)\cv2pdb.exe
diff --git a/test/cvtest.d b/test/cvtest.d
index 2336fc8..f504500 100644
--- a/test/cvtest.d
+++ b/test/cvtest.d
@@ -129,6 +129,21 @@ class Templ(T)
}
}
+struct struc
+{
+ int a;
+ struc * next;
+}
+
+class class_with_struct_member
+{
+ int c1;
+ int c2;
+ struc *s1;
+
+ this() { s1 = new struc; }
+};
+
version(D2)
{
string stringMixin = "int a = 0;
@@ -183,6 +198,8 @@ int main2(char[][]argv)
int delegate() dg = &inst_method.method;
int res = dg();
+ class_with_struct_member cwsm = new class_with_struct_member;
+
return 0;
}
@@ -215,11 +232,13 @@ int main(char[][]argv)
struc_arr[ab2] = 6;
struc_arr[ab3] = 7;
+ struc s = { 2, null };
+
Templ!(int) templ = new Templ!(int);
int y = templ.foo(3);
version(D2)
int z = mixinTest(7);
-
+
(new Test).test();
dmd_quirks();