1 /* Test whether difference of local labels doesn't force
2 variables into writable sections. */
3 /* { dg-do compile { target fpic } } */
4 /* { dg-options "-O2 -fpic" } */
5 /* { dg-options "-O2 -fpic -mpt-fixed" { target sh64*-*-* } } */
6 /* { dg-final { scan-assembler-not ".data.rel.ro.local" } } */
10 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
11 void *p = &&l1 + ar[a];