File: test_memory.pro

package info (click to toggle)
gnudatalanguage 0.9.9-13
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,892 kB
  • sloc: cpp: 167,389; ansic: 9,358; sh: 566; python: 472; makefile: 252; f90: 28
file content (8 lines) | stat: -rw-r--r-- 227 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
pro test_memory
  mem = memory(/curr)
  a = dblarr(9999999)
  if (mem ge memory(/curr)) then begin
    message, 'reported memory consumption should increase after allocating a big array!', /conti
    exit, status=1
  endif
end