NetBSD/regress/usr.bin/xlint/lint1/test9.c

12 lines
123 B
C
Raw Normal View History

/* compound literals */
struct p {
short a, b, c, d;
};
foo()
{
struct p me = (struct p) {1, 2, 3, 4};
me.a = me.b;
}