blob: 142530f62c120a0b40ad119fa275fbbd94399e90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
extern void abort (void);
extern void exit (int);
typedef __SIZE_TYPE__ size_t;
int
main (void)
{
int a = 0;
int *p;
size_t b;
b = (size_t)(p = &(int []){0, 1, 2}[++a]);
if (a != 1 || *p != 1 || *(int *)b != 1)
abort ();
exit (0);
}
|