view run/t/typeof_16_A.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents 7231246f20c2
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Dan <ddaglas@gmail.com>
// @date@	2006-12-28
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=764
// @desc@	[Issue 764] (typeof(o)).classinfo causes parser error

module dstress.run.t.typeof_16_A;

int main() {
	Object o = new Object();
	char[] name = (typeof(o)).classinfo.name;

	if("object.Object" != name){
		assert(0);
	}
	return 0;
}