annotate run/b/bug_expression_5981_B.d @ 1531:640c34dfc7a5

updated to DMD-1.013
author thomask
date Fri, 27 Apr 2007 17:35:09 +0000
parents
children 36bedfa079e6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1531
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
1 // $HeadURL$
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
2 // $Date$
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
3 // $Author$
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
4
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
5 // @author@ Kazuhiro Inaba <kinaba@is.s.u-tokyo.ac.jp>
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
6 // @date@ 2006-12-03
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=641
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
8 // @desc@ [Issue 641] New: Complex string operations in template argument ICEs dmd
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
9
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
10 module dstress.run.b.bug_expression_5981_B;
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
11
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
12 int main(){
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
13 auto x = ([""]~[])[0];
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
14
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
15 if(is(typeof(x) : char[])){
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
16 return 0;
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
17 }
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
18
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
19 assert(0);
640c34dfc7a5 updated to DMD-1.013
thomask
parents:
diff changeset
20 }