示例#1
0
void first_function(void)
{
	int imidate=3;
	char broiled='c';
	void *where_prohibited=NULL;

	second_function(imidata);
	imidata=10;
}
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
}
示例#3
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
}