view compile/o/opCat_21_A.d @ 1143:868813e44edf

[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression Stewart Gordon <smjg@iname.com> 2006-09-16 news:bug-353-3@http.d.puremagic.com/issues/
author thomask
date Wed, 20 Sep 2006 19:11:06 +0000
parents
children daef239f37cf
line wrap: on
line source

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

// @author@	Stewart Gordon <smjg@iname.com>
// @date@	2006-09-16
// @uri@	news:bug-353-3@http.d.puremagic.com/issues/
// @desc@	[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression

module dstress.compile.o.opCat_21_A;

const char[] a = null ~ "cat";

static assert(a == "cat");