Back to index

cell-binutils  2.17cvs20070401
Functions | Variables
sh2.c File Reference

Go to the source code of this file.

Functions

void trap (int, int)
static void quit (int)
static int foo (int)
int main ()
void __main ()
int bar (int i)
int bar0 (int i)
int bar1 (int i)
int bar2 (int i)
int bar3 (int i)
int bar4 (int i)
int bar5 (int i)
int bar6 (int i)
int bar7 (int i)

Variables

int global

Function Documentation

void __main ( )

Definition at line 32 of file sh2.c.

{
}
int bar ( int  i)

Definition at line 43 of file sh2.c.

{
  global = i;
  return i;
}
int bar0 ( int  i)

Definition at line 50 of file sh2.c.

{
  global = 0;
  return i;
}
int bar1 ( int  i)

Definition at line 57 of file sh2.c.

{
  global = 1;
  return i;
}
int bar2 ( int  i)

Definition at line 64 of file sh2.c.

{
  global = 2;
  return i;
}
int bar3 ( int  i)

Definition at line 71 of file sh2.c.

{
  global = 3;
  return i;
}
int bar4 ( int  i)

Definition at line 78 of file sh2.c.

{
  global = 4;
  return i;
}
int bar5 ( int  i)

Definition at line 85 of file sh2.c.

{
  global = 5;
  return i;
}
int bar6 ( int  i)

Definition at line 92 of file sh2.c.

{
  global = 6;
  return i;
}
int bar7 ( int  i)

Definition at line 99 of file sh2.c.

{
  global = 7;
  return i;
}
static int foo ( int  i) [static]
int main ( void  )

Definition at line 8 of file sh2.c.

{
  if (foo (0) != 0 || global != 0)
    quit (1);
  if (foo (1) != 1 || global != 1)
    quit (1);
  if (foo (2) != 2 || global != 2)
    quit (1);
  if (foo (3) != 3 || global != 3)
    quit (1);
  if (foo (4) != 4 || global != 4)
    quit (1);
  if (foo (5) != 5 || global != 5)
    quit (1);
  if (foo (6) != 6 || global != 6)
    quit (1);
  if (foo (7) != 7 || global != 7)
    quit (1);
  if (foo (8) != 8 || global != 8)
    quit (1);
  quit (0);
}

Here is the call graph for this function:

static void quit ( int  status) [static]

Definition at line 37 of file sh2.c.

{
  trap (1, status);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void trap ( int  ,
int   
)

Here is the caller graph for this function:


Variable Documentation

Definition at line 1 of file sh2.c.