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.target/] [m68k/] [pic-1.c] - Blame information for rev 325

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 320 jeremybenn
/* { dg-do compile { target m68k-*-* fido-*-* } }  */
2
/* { dg-options "-O2 -fpic" }  */
3
 
4
extern void Foo (void *);
5
 
6
char *ary[] = {"a", "b", "c", "d", "e"};
7
 
8
void Bar (void)
9
{
10
  int cnt = 0;
11
 
12
  for (cnt = 0; cnt < 4;  ++cnt)
13
    {
14
      char *ptr = ary[cnt];
15
 
16
      Foo (&ptr);
17
    }
18
}

powered by: WebSVN 2.1.0

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