1 /* Test whether variables with relocations aren't put into
2 mergeable sections even with -fmerge-all-constants. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -fmerge-all-constants" } */
5 /* { dg-final { scan-assembler-not ".rodata.cst" } } */
6
7 int foo (int a)
8 {
9 static void * const ar[] = { &&l2 };
10 void *p = ar[a];
11 goto *p;
12 l2:
13 return 2;
14 }