Exemplo n.º 1
0
int main() {
   int result;
   result = fun_a(result);
   VALGRIND_MAKE_MEM_UNDEFINED(&result, sizeof(result));
   result += fun_noninline_m(result);
   VALGRIND_MAKE_MEM_UNDEFINED(&result, sizeof(result));
   result += fun_d(result);
   VALGRIND_MAKE_MEM_UNDEFINED(&result, sizeof(result));
   result += fun_noninline_n(result);
   return 0;
}
Exemplo n.º 2
0
int main(){
    int a, b, c, d, e, f;

    fun_a(&a);
    fun_b(&b, 400);
    fun_c(&c);
    d = fun_d();
    e = fun_e(e);
    f = fun_e(300);

    printf("%d %d %d %d %d %d\n", a, b, c, d, e, f);
    
    return 0;
}
Exemplo n.º 3
0
int main(){
    int a = 10;
    int b = 30;
    int k;
    int l;

    fun_a();
    int c = fun_b(a, b);
    int d = fun_c(a, b);
    int e = fun_b(a, a);
    int f = fun_b(c,d);
	
    double ad = fun_d(a) + 100.0;
    float  af = fun_e(a) + 100.f;
    
    double h = fun_h();

    int m = fun_i(a, b);     

    printf("result is %d\n", f);
    printf("k is %d\n", k);
    printf("m is %d\n", m);
    return 0;
}
Exemplo n.º 4
0
static int fun_noninline_m(int argm)
{
   return fun_d(argm);
}
Exemplo n.º 5
0
INLINE int fun_c(int argc) {
   static int locc = 0;
   locc += argc;
   return fun_d(locc);
}