blob: 7ef604be293d907a976a5c3ae1e21ba27b7d7169 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* { dg-do run } */
/* { dg-options "-O2" } */
void abort(void);
int main()
{
int a[2];
int *p = a;
int i;
a[0] = 1;
a[1] = 2;
for (i=0; i<2; ++i)
if (p[i] != i+1)
abort();
return 0;
}
|