File: test_compile_opt.pro

package info (click to toggle)
gnudatalanguage 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 80,832 kB
  • sloc: cpp: 198,435; ansic: 47,740; sh: 691; python: 474; makefile: 149; xml: 69; f90: 28
file content (26 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pro define_as_int
  a=33
  print,'A               INT       =       33'
  help,a
end
pro define_as_long
  compile_opt IDL2
  b=44
  print,'B               LONG       =          44'
  help,b
end
pro test_compile_opt
  print,"start without DEFINT32"
   define_as_long
   define_as_int
  print,"setting DEFINT32 (should not change anything)"
   compile_opt IDL2
   define_as_long
   define_as_int
  print,"in execute:"
  void=execute("define_as_long")
  void=execute("define_as_int")

  print,"now interactively type 'compile_opt IDL2' and replay me."

end