OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [20021029-2.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.