annotate run/a/assert_18_D.d @ 1309:72ecc3d71ef9

[Issue 777] -inline: assert() with a non-constant message causes code to not compile Matti Niemenmaa <deewiant@gmail.com> 2006-12-30 http://d.puremagic.com/issues/show_bug.cgi?id=777
author thomask
date Sun, 31 Dec 2006 11:02:41 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1309
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
1 // $HeadURL$
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
2 // $Date$
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
3 // $Author$
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
4
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
5 // @author@ Matti Niemenmaa <deewiant@gmail.com>
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
6 // @date@ 2006-12-30
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=777
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
8 // @desc@ [Issue 777] -inline: assert() with a non-constant message causes code to not compile
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
9
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
10 module dstress.run.a.assert_18_D;
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
11
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
12 int main(char[][] args){
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
13 void foo(){
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
14 assert(true, args[0]);
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
15 }
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
16 foo();
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
17 return 0;
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
18 }
72ecc3d71ef9 [Issue 777] -inline: assert() with a non-constant message causes code to not compile
thomask
parents:
diff changeset
19