view compile/c/const_44_C.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 aaf99ec76365
children
line wrap: on
line source

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

// @author@	torhu <fake@address.dude>
// @date@	2007-02-15
// @uri@	http://www.digitalmars.com/webnews/newsgroups.php?search_txt=&group=digitalmars.D&article_id=48845
// @desc@	Re: Compile time function execution...

module dstress.compile.c.const_44_C;

double square(idouble x){
	return x * x;
}

const double foo = square(5.0i);
static assert(25 == foo);