Debian Codegraph @

gcc/testsuite/objc.dg/try-catch-9.m

raw
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 <[email protected]>. */
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