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.dg/] [guality/] [pr43593.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR debug/43593 */
2
/* { dg-do run } */
3
/* { dg-options "-g" } */
4
 
5
void __attribute__((noinline))
6
bar (int *p)
7
{
8
  asm volatile ("" : : "r" (p) : "memory");
9
}
10
 
11
int __attribute__((noinline))
12
foo (void)
13
{
14
  int i, *j = &i;
15
  bar (j);
16
  return 6 + i; /* { dg-final { gdb-test 16 "j" "&i" } } */
17
}
18
 
19
int
20
main (void)
21
{
22
  foo ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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