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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [labels-3.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* This test does not compile on mips-irix6 using the native assembler,
2
   though it does work with gas.  See PR6200.  Since we cannot (???)
3
   distinguish which assembler is being used, always pass -S for
4
   irix.  */
5
/* { dg-options "-w -S" { target mips*-*-irix* } } */
6
 
7
/* Verify that we can narrow the storage associated with label diffs.  */
8
 
9
int foo (int a)
10
{
11
  static const short ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
12
  void *p = &&l1 + ar[a];
13
  goto *p;
14
 l1:
15
  return 1;
16
 l2:
17
  return 2;
18
}

powered by: WebSVN 2.1.0

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