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

Subversion Repositories or1k

[/] [or1k/] [branches/] [oc/] [gdb-5.0/] [gdb/] [testsuite/] [gdb.base/] [return.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
#include <stdio.h>
2
/*  Test "return" command.  */
3
 
4
void func1 ()
5
{
6
  printf("in func1\n");
7
}
8
 
9
int
10
func2 ()
11
{
12
  return -5;
13
}
14
 
15
double
16
func3 ()
17
{
18
  return -5.0;
19
}
20
 
21
int tmp2;
22
double tmp3;
23
 
24
int main ()
25
{
26
#ifdef usestubs
27
  set_debug_traps();
28
  breakpoint();
29
#endif
30
  func1 ();
31
  printf("in main after func1\n");
32
  tmp2 = func2 ();
33
  tmp3 = func3 ();
34
  printf("exiting\n");
35
  return 0;
36
}

powered by: WebSVN 2.1.0

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