summaryrefslogtreecommitdiff
path: root/mnv/runtime/syntax/testdir/input/gdb_multiline_commands.gdb
blob: 6738921d9ad55a030af18da716ada42f40533b28 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# GDB multiline commands
# MNV_TEST_SETUP setl fdc=2 fdl=999 fdm=syntax

define hello
  echo Hello, world!\n
end

document Foo
  Print a greeting.
end

commands
  echo Hello, world!\n
end

compile code
  printf("Hello, world!\n");
end

expression code
  printf("Hello, world!\n");
end

python
  print("Hello, world!\n")
end

guile
  (display "Hello, world!\n")
end

while 0
  echo Not this time\n
end

if 1
  echo Yes\n
else
  echo No\n
end