File: test_memory.pro

package info (click to toggle)
gnudatalanguage 0.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,228 kB
  • ctags: 11,455
  • sloc: cpp: 143,352; makefile: 426; sh: 103; ansic: 44; awk: 18; python: 6
file content (8 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
pro test_memory
  mem = memory(/curr)
  a = dblarr(99999)
  if mem ge memory(/curr) then begin
    message, 'reported memory consumption should increase after allocating a big array!', /conti
    exit, status=1
  endif
end