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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [guality/] [pr41353-2.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR debug/41353 */
2
/* { dg-do run } */
3
/* { dg-options "-g" } */
4
 
5
int varh;
6
int vari __attribute__((used)) = 17, varj;
7
 
8
__attribute__((noinline)) int
9
f1 (void)
10
{
11
  int vari1 = 2 * vari; /* { dg-final { gdb-test 13 "vari1" "2 * 17" } } */
12
  int vari2 = 3 * vari; /* { dg-final { gdb-test 13 "vari2" "3 * 17" } } */
13
  return varj;
14
}
15
 
16
int (*volatile fnp1) (void) = f1;
17
 
18
int
19
main (int argc, char *argv[])
20
{
21
  asm volatile ("" : : "r" (&fnp1) : "memory");
22
  fnp1 ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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