summaryrefslogtreecommitdiffstats
path: root/test/cvtest.d
diff options
context:
space:
mode:
authorsagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2011-05-08 07:45:27 (GMT)
committersagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2011-05-08 07:45:27 (GMT)
commit60cbfcd62a1d8c81b01342f302df4d06a1ae0cb2 (patch)
tree6f2e785043f726b8eb8f0fe8a37840029a0def3b /test/cvtest.d
parentc50711be6be8b679d5e2b2a9849ced1665134268 (diff)
downloadcv2pdb-60cbfcd62a1d8c81b01342f302df4d06a1ae0cb2.zip
cv2pdb-60cbfcd62a1d8c81b01342f302df4d06a1ae0cb2.tar.gz
cv2pdb-60cbfcd62a1d8c81b01342f302df4d06a1ae0cb2.tar.bz2
* fixed decoding of compressed symbols
* added command line switch * fixed crash with more than 32767 types
Diffstat (limited to 'test/cvtest.d')
-rw-r--r--test/cvtest.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/cvtest.d b/test/cvtest.d
index 283e972..4d64873 100644
--- a/test/cvtest.d
+++ b/test/cvtest.d
@@ -231,8 +231,18 @@ int arrays()
return iarr.length;
}
+enum { Forward, Accept, Reject }
+alias int Action;
+
+Action convertEnum()
+{
+ return Accept;
+}
+
int main2(char[][]argv)
{
+ convertEnum();
+
enum_name inst_enum = enum_name.kEnum2;
class_member inst_member = new class_member;
base_class inst_base = new base_class;