view test/tmp12.c @ 323:d5cb084fc3f4

typedef struct tag before struct fields def.
author kono
date Sat, 19 Jun 2004 17:50:40 +0900
parents 096559f07a70
children 0c256ea2a97e
line wrap: on
line source



struct {
    int a;
    char *b;
} x1;

// int b;

main()
{
    int a;
    x1.a = 1;
    a = 133;
    printf("%d %d\n",x1.a,a);
    return 0;
}