OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.pascal/] [integers.pas] - Blame information for rev 827

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
{
2
 Copyright 2008 Free Software Foundation, Inc.
3
 
4
 This program is free software; you can redistribute it and/or modify
5
 it under the terms of the GNU General Public License as published by
6
 the Free Software Foundation; either version 3 of the License, or
7
 (at your option) any later version.
8
 
9
 This program is distributed in the hope that it will be useful,
10
 but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 GNU General Public License for more details.
13
 
14
 You should have received a copy of the GNU General Public License
15
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
}
17
 
18
program integers;
19
 
20
 
21
function add(a,b : integer) : integer;
22
begin
23
  add:=a+b;
24
end;
25
 
26
function sub(a,b : integer) : integer;
27
begin
28
  sub:=a-b;
29
end;
30
 
31
var
32
  i, j, k, l : integer;
33
 
34
begin
35
  i := 0;
36
  j := 0;
37
  k := 0;
38
  l := 0; { set breakpoint 1 here }
39
  i := 1;
40
  j := 2;
41
  k := 3;
42
  l := k;
43
 
44
  i := j + k;
45
 
46
  j := 0; { set breakpoint 2 here }
47
  k := 0;
48
  l := add(i,j);
49
  l := sub(i,j);
50
 
51
end.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.