diff nocompile/offsetof_05.d @ 172:e5bbb877feb9

extended offsetof / offset tests
author thomask
date Wed, 01 Dec 2004 13:53:23 +0000
parents
children f87ba6507260
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/offsetof_05.d	Wed Dec 01 13:53:23 2004 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// functions are no member fields
+
+module dstress.nocompile.offsetof_05;
+
+struct MyStruct{
+	int a;
+	void test(){
+	}
+	int b;	
+}
+
+int main(){
+	MyStruct s;
+
+	assert(s.test.offsetof >= 0);
+
+	return 0;
+}