// RUN: %ocheck 0 %s

typedef struct
{
	int x;
} A;

main()
{
	int sz = sizeof((A *)0)->x;
	if(sz != sizeof(int))
		abort();
	return 0;
}

// RUN: %ocheck 0 %s

typedef struct
{
	int x;
} A;

main()
{
	int sz = sizeof((A *)0)->x;
	if(sz != sizeof(int))
		abort();

	int ar[10];
	sz = sizeof(ar)[0];
	if(sz != sizeof(int))
		abort();

	return 0;
}

Add array size check to sizeof() test
Add array size check to sizeof() test
