view run/c/case_06_H.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 ed2e61c395a8
children
line wrap: on
line source

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

// @author@	davidl <davidl@126.com>
// @date@	2007-04-06
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1102
// @desc@	[Issue 1102] switch case couldn't contain template member

module dstress.run.c.case_06_H;

template T(int x){
	const int T = x;
}

int main(char[][] args){
	switch(args.length + 1){
		case 3:
			assert(0);
		case T!(2):
			return 0;
		default:
			assert(0);
	}
}