diff run/t/typedef_07_A.d @ 543:4b941e2f6d4f

typedef & class members Mizuno Hiroki <hiroki1124@hotmail.com> 2005-05-16 news:d6ac08$1uug$1@digitaldaemon.com
author thomask
date Tue, 17 May 2005 15:26:54 +0000
parents
children b8c0195059d9
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/typedef_07_A.d	Tue May 17 15:26:54 2005 +0000
@@ -0,0 +1,26 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Mizuno Hiroki <hiroki1124@hotmail.com>
+// @date@	2005-05-16
+// @uri@	news:d6ac08$1uug$1@digitaldaemon.com
+
+module dstress.run.t.typedef_07_A;
+
+struct Org{
+	int i;
+}
+
+typedef Org Ali;
+
+int main(){
+	Ali a;
+
+	assert(a.i==0);
+	a.i=2;
+	assert(a.i==2);
+	
+	return 0;
+}
+