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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [try-catch-9.m] - Blame information for rev 868

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

Line No. Rev Author Line
1 149 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
 
9
void foo (int *arg1, int *arg2)
10
{
11
  *arg1 = *arg2;
12
}
13
 
14
void bar (int arg) {
15
  int rcvr;
16
 
17
  @try {
18
    rcvr = arg;
19
  }
20
  @finally {
21
    int *rcvr0 = &rcvr;
22
    foo (rcvr0, &arg);
23
  }
24
}
25
 

powered by: WebSVN 2.1.0

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