changeset 386:d856607ea5cd

change declaration order: no more forward references
author thomask
date Wed, 06 Apr 2005 07:21:34 +0000
parents fc1729579e82
children b1bb3423e2c3
files run/debug_info_07.d
diffstat 1 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/debug_info_07.d	Wed Apr 06 07:21:34 2005 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Jarrett Billingsley <kb3ctd2@yahoo.com>
+// @date@	2005-03-25
+// @uri@	news:d21vhg$pld$1@digitaldaemon.com
+
+// __DSTRESS_DFLAGS__ -g
+
+module dstress.run.debug_info_07;
+
+struct MyStruct{
+}
+
+alias int function(MyStruct m) fn;
+
+int check(fn f){
+	return 1;
+}
+
+int main(){
+	MyStruct m;
+	fn f;
+	assert(check(f)==1);
+	return 0;
+}