PageRenderTime 38ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/d/sizet_runme.1.d

#
D | 15 lines | 12 code | 3 blank | 0 comment | 2 complexity | 1d78380c1c83740729ca30fe13a43aa8 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. module sizet_runme;
  2. import sizet.sizet;
  3. void main() {
  4. size_t s = 2000;
  5. s = test1(s+1);
  6. s = test2(s+1);
  7. s = test3(s+1);
  8. s = test4(s+1);
  9. if (s != 2004) {
  10. throw new Exception("failed");
  11. }
  12. }