annotate tests/mini/globals2.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/globals2.d@a6360e68134a
children
rev   line source
lindquist@22 1 module globals2;
lindquist@22 2
lindquist@22 3 template Bool(bool b)
lindquist@22 4 {
lindquist@22 5 const bool Bool = b;
lindquist@22 6 }
lindquist@22 7
lindquist@22 8 void main()
lindquist@22 9 {
lindquist@22 10 assert(Bool!(true));
lindquist@22 11 assert(!Bool!(false));
lindquist@22 12 }