Esempio n. 1
0
void foo(int *x)
{
	/* add some local variables for "bt full" to see */
	int foovar = 7;
	double myval = 1.2;
	another_function(x);
}
Esempio n. 2
0
int
main(int argc, char *argv[])
{
  printf("main()\n");
  do_setjmp();
  another_function();
  do_longjmp();
  printf("exiting main()\n");
  exit(EXIT_SUCCESS);
}
Esempio n. 3
0
void _cdecl function1_16() {
	another_function();
	__asm {
		push	cx
		push	si
		mov	cx,0x1234
		mov	si,offset function1_message
l1:		nop
		loop	l1
		pop	si
		pop	cx
	}
}
Esempio n. 4
0
void coverage4(int *x) {
  *x += another_function(x);
  function_which_gives_up(x);
  char *m = (char*)malloc(12);
} // expected-warning {{Potential leak of memory pointed to by 'm'}}
Esempio n. 5
0
static void function_which_doesnt_give_up_nested(int *x, int *y) {
  *y = another_function(x);
  function_which_gives_up(x);
}