File: test_same_name.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 (13 lines) | stat: -rw-r--r-- 181 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
function TOTO, x
  return, x+1
end

pro test_same_name
  ; 1st case
  if execute("dist = dist(10)") ne 1 then exit, status=1

  ; 2nd case
  x=0
  toto=TOTO(x)
  print, x, toto
end