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

# · D · 15 lines · 12 code · 3 blank · 0 comment · 2 complexity · 1d78380c1c83740729ca30fe13a43aa8 MD5 · raw file

  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. }