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/] [execute/] [20000722-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
struct s { char *p; int t; };
2
 
3
extern void bar (void);
4
extern void foo (struct s *);
5
 
6
int main(void)
7
{
8
  bar ();
9
  bar ();
10
  exit (0);
11
}
12
 
13
void
14
bar (void)
15
{
16
  foo (& (struct s) { "hi", 1 });
17
}
18
 
19
void foo (struct s *p)
20
{
21
  if (p->t != 1)
22
    abort();
23
  p->t = 2;
24
}

powered by: WebSVN 2.1.0

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