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

ia32 reconfigure end (correct?)
author kono
date Wed, 18 Jan 2006 12:26:48 +0900
parents a379da780856
children 5313ed059cee
line wrap: on
line source

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

enum {
    a,b,c
};

enum aho {
    a1=3,b1,c1,d1
};

enum aho j = c;

const int a2=10;

int
main()
{
    enum aho i;
    enum {
	k=7
    };
    enum foo {
	a1=-3,b1,c1
    };

    i = a1;
    printf("#0026:%d %d %d\n",k,i,j);
    i = a2;
    printf("#0028:%d %d %d %d %d %d %d\n",a,b,a1,b1,d1,a2,i);
    return 0;
}