summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/pr21082.C
blob: d6c2fa1d2b5e3e4a8b915363979d4f771ccee1d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do link } */
/* { dg-options "-fstrict-overflow" } */

void link_error();

int a[4];
__INTPTR_TYPE__ b, c;

int main()
{
	if (&a[b] - &a[c] != b - c)
		link_error();
	return 0;
}