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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
int count = 0;
2
int dummy;
3
 
4
static int *
5
bar(void)
6
{
7
  ++count;
8
  return &dummy;
9
}
10
 
11
static void
12
foo(void)
13
{
14
  asm("" : "+r"(*bar()));
15
}
16
 
17
main()
18
{
19
  foo();
20
  if (count != 1)
21
    abort();
22
  exit(0);
23
}

powered by: WebSVN 2.1.0

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