view test/func_conv_err.c @ 585:a5b902b20300 ia32-no-rname

ia32 reconfigure end (correct?)
author kono
date Wed, 18 Jan 2006 12:26:48 +0900 (2006-01-18)
parents aad312f61654
children 682c8ec38d45
line wrap: on
line source

code hoge()
{
    goto hoge(); // ok
}

int
f()
{
    return 1;
}

code hoga(int i)
{
    f();   // ok
    h();   // ok h() is a function
    if (i)
	goto f();  // bad
    else if(i-1)
	goto g(i);  // ok g() is a code segement
}    //  need goto bad 

int
g(int i) {                     // g is already used as code bad
    k();
    if (i) 
	goto h();    // bad
    // should complain.... no return value
}

code k() {                    // bad k is already used as function
    goto hoge();       // ok
}

int
main()
{
    hoge();    // bad
    return 0;
}