johnsonjh/duma

View on GitHub
examples/example5.cpp

Summary

Maintainability
Test Coverage
#include <dumapp.h>

int main() {
  int *pi;
  int i;
#ifdef DUMA_EXPLICIT_INIT
  duma_init();
#endif
  pi = new int[10];
  for (i = 0; i < 10; ++i)
    pi[i] = i;
  delete[] pi;
  return 0;
  // should run fine
}