File: test_same_name.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 (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