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; }