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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [try-catch-9.m] - Blame information for rev 711

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

Line No. Rev Author Line
1 704 jeremybenn
/* Check that taking the address of a local variable marked 'volatile'
2
   by the compiler does not generate untoward errors.  */
3
/* Developed by Ziemowit Laski <zlaski@apple.com>.  */
4
 
5
/* { dg-options "-fobjc-exceptions" } */
6
/* { dg-do compile } */
7
 
8
void foo (int *arg1, int *arg2)
9
{
10
  *arg1 = *arg2;
11
}
12
 
13
void bar (int arg) {
14
  int rcvr;
15
 
16
  @try {
17
    rcvr = arg;
18
  }
19
  @finally {
20
    int *rcvr0 = &rcvr;
21
    foo (rcvr0, &arg);
22
  }
23
}
24
 

powered by: WebSVN 2.1.0

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