aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.chill/result.ch
blob: 71e64005d5207242606bf656c38c61c9c295ed31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
test_result:  MODULE

  DCL i INT := 5;

  simple_func: PROC () RETURNS (INT);
    DCL j INT := i;
    RESULT 10;
    i + := 2;
    RESULT j + 2;
    i + := 2;
  END simple_func;

  i := simple_func ();
  i := simple_func ();
  i * := 10;
END test_result;