OSDN Git Service

* gcc.dg/tree-ssa/20040204-1.c: Adjust XFAIL for CRIS and MMIX.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / try-catch-9.m
1 /* 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