view compile/e/enum_48_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 daef239f37cf
children
line wrap: on
line source

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

// @author@	Stewart Gordon <smjg@iname.com>
// @date@	2006-09-15
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=349
// @desc@	[Issue 349] New: Function matching with enums is erratic

module dstress.compile.e.enum_48_A;

enum E : uint{
	A = 1
}

template T(uint a){
	const uint T = a + 1;
}

template T(E e){
	const E T = e;
}

static assert(T!(E.A) == E.A);