blob: 04743282a2558f3ff90f65e3bcfda9d68ca927da [file] [log] [blame]
/* APPLE LOCAL begin mainline 2005-08-31 */
#include <stdio.h>
#include <stdlib.h>
extern void abort();
typedef struct foo
{
int uaattrid;
char *name;
} FOO;
FOO Upgrade_items[] =
{
{1, "1"},
{2, "2"},
{0, NULL}
};
int *Upgd_minor_ID =
(int *) &((Upgrade_items + 1)->uaattrid);
int *Upgd_minor_ID1 =
(int *) &((Upgrade_items)->uaattrid);
int
main(int argc, char **argv)
{
if (*Upgd_minor_ID != 2)
abort();
if (*Upgd_minor_ID1 != 1)
abort();
return 0;
}
/* APPLE LOCAL end mainline 2005-08-31 */