view compile/t/template_35_B.d @ 1622:d402aa53926c

Add test for bug 3092 written by Manuel K?nig
author Leandro Lucarella <llucax@gmail.com>
date Tue, 19 Oct 2010 19:18:23 -0300
parents 1e495c60b3cd
children
line wrap: on
line source

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

// @author@	Li Jie <cpunion@gmail.com>
// @date@	2006-04-11
// @uri@	news:e1fa64$17nq$1@digitaldaemon.com

module dstress.compile.t.template_35_B;

template foo(char[] str){
	const char foo = bar!(str[1]);
}

template bar(char c){
	const char bar = c;
}

static assert(foo!("abc") == 'b');