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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20040625-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* From PR target/16176 */
2
struct __attribute__ ((packed)) s { struct s *next; };
3
 
4
struct s * __attribute__ ((noinline))
5
maybe_next (struct s *s, int t)
6
{
7
  if (t)
8
    s = s->next;
9
  return s;
10
}
11
 
12
int main ()
13
{
14
  struct s s1, s2;
15
 
16
  s1.next = &s2;
17
  if (maybe_next (&s1, 1) != &s2)
18
    abort ();
19
  exit (0);
20
}

powered by: WebSVN 2.1.0

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