Exemplo n.º 1
0
int
factorial_func (int value)
{
  if (value > 1)
    value *= factorial_func (value - 1);

  terminal_func ();
  return value;
}
Exemplo n.º 2
0
void
array_func ()
{
  int local_array[4];
  int i;

  heap_string = (char *) malloc (80);
  strcpy (heap_string, "I'm a little teapot, short and stout...");
  for (i = 0; i < 4; i++)
    {
      un_initialized_array[i] = extern_array[i] + 8;
      local_array[i] = extern_array[i] + 12;
    }
  terminal_func ();
}
Exemplo n.º 3
0
void
array_func ()
{
  int local_array[4];
  int i;

  heap_string = (char *) malloc (80);
  strcpy (heap_string, "I'm a little teapot, short and stout...");
  for (i = 0; i < 4; i++)
    {
      un_initialized_array[i] = extern_array[i] + 8;
      local_array[i] = extern_array[i] + 12;
    }
  /* Reference static_array so that clang doesn't discard it.  */
  (void) static_array[0];
  terminal_func ();
}