view test/tmp11.c @ 746:f8ea174944f2

i64 continue... global table have to be fixed.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 12 Nov 2010 22:19:55 +0900
parents a379da780856
children bc919d849346
line wrap: on
line source

int printf(const char *format, ...);

typedef struct nametable {
        char *nm;
        int sc,ty,dsp; } NMTBL;
NMTBL *a;

NMTBL *
test2(char *n) {
    printf("#0009:s %s\n",n);
    return a;
}

int
test0(int a,int b,int c) {
    printf("#0015:a %d b %d c %d\n",a,b,c);
    return 0;
}

int
test1(a,b,c) 
int a,b;int c;
{
    return test0(a,b,c);
}

int
main()
{
    int d;
    NMTBL *b;
    b = test2("test");
    d = test1(1,2,3);
    printf("#0033:return %d\n",d);
    return d;
}