Example #1
0
// funciton definition
int main() {
	printf("the program begins...\n");
	first_function();
	goodbye();

	return 0;
}
Example #2
0
int main(void)
{
	printf("Hello world\n");
	first_function();
	printf("goodbye googdbye\n");

	return 0;
}
void test_simple_2 (void)
{
#if 0
  x = first_function () + second_function ();  /* { dg-warning "test" } */

/* { dg-begin-multiline-output "" }
   x = first_function () + second_function ();
       ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
   { dg-end-multiline-output "" } */
#endif
}
Example #4
0
int main()
{
    sleep(30);
    STAP_PROBE(proc_by_pid, main_start);
    marker_here:
      first_function();
    STAP_PROBE(proc_by_pid, main_end);
    second_function();
    exit_probe_function();
    return 0;
}
void test_multiline (void)
{
#if 0
  x = (first_function ()
       + second_function ()); /* { dg-warning "test" } */

/* { dg-begin-multiline-output "" }
   x = (first_function ()
        ~~~~~~~~~~~~~~~~~
        + second_function ());
        ^ ~~~~~~~~~~~~~~~~~~
   { dg-end-multiline-output "" } */
#endif
}
Example #6
0
void second_function() {first_function();}