LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / 20021029-1.c
blobf11a6e4a920d926b1122f0592dfb3d6ba667d897
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-final { scan-assembler-not ".data.rel.ro.local" } } */
6 /* { dg-require-effective-target label_values } */
7 /* { dg-require-effective-target indirect_jumps } */
9 int foo (int a)
11 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
12 void *p = &&l1 + ar[a];
13 goto *p;
14 l1:
15 return 1;
16 l2:
17 return 2;