summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorsagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2012-05-01 16:13:31 (GMT)
committersagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2012-05-01 16:13:31 (GMT)
commitdd308fa75adfe87dbff2201f60972ecadfe14e68 (patch)
tree392825c41e06a3789b4126486f4a0c45e0a711b6 /test
parent892b58bf895da2a527cf32953207f4d127d1d909 (diff)
downloadcv2pdb-dd308fa75adfe87dbff2201f60972ecadfe14e68.zip
cv2pdb-dd308fa75adfe87dbff2201f60972ecadfe14e68.tar.gz
cv2pdb-dd308fa75adfe87dbff2201f60972ecadfe14e68.tar.bz2
Version 0.24
* supports unicode characters in file names * improve interpretation of DWARF location expression
Diffstat (limited to 'test')
-rw-r--r--test/cvtest.d28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/cvtest.d b/test/cvtest.d
index 0794e9e..5b5d233 100644
--- a/test/cvtest.d
+++ b/test/cvtest.d
@@ -1,6 +1,24 @@
module cvtest;
+version(none)
+{
+ int[int] global_oem_int_assoc_array;
+
+ int args(int a, int b, int c, int abc)
+ {
+ int d = a + b;
+ int e = b + c;
+ foreach(x; global_oem_int_assoc_array)
+ e += x;
+ return d + e + abc;
+ }
+ void main()
+ {
+ args(3, 4, 5, 345);
+ }
+}
+version(all):
import std.string;
import std.stdio;
@@ -220,6 +238,15 @@ void voidpointers(ubyte* p)
const(int*) const_ip2 = cast(const(int*)) p;
}
+int args(int a, int b, int c, int abc)
+{
+ int d = a + b;
+ int e = b + c;
+ foreach(x; global_oem_int_assoc_array)
+ e += x;
+ return d + e + abc;
+}
+
size_t arrays()
{
int[] iarr;
@@ -330,6 +357,7 @@ int main(char[][]argv)
long lng = 3;
ulong ulng = 4;
+ args(3, 4, 5, 345);
voidpointers(null);
arrays();
lexical_scope();