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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [try-catch-6.m] - Blame information for rev 318

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

Line No. Rev Author Line
1 309 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fobjc-exceptions" } */
3
 
4
#include "../objc-obj-c++-shared/Object1.h"
5
 
6
int main (int argc, const char * argv[]) {
7
  Object * pool = [Object new];
8
  int a;
9
 
10
  if ( 1 ) {
11
 
12
    @try {
13
      a = 1;
14
    }
15
    @catch (Object *e) {
16
      a = 2;
17
    }
18
    @finally {
19
      a = 3;
20
    }
21
  }
22
 
23
  [pool free];
24
  return 0;
25
}

powered by: WebSVN 2.1.0

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