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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 704 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fobjc-exceptions" } */
3
 
4
#include "../objc-obj-c++-shared/TestsuiteObject.h"
5
 
6
int main (int argc, const char * argv[]) {
7
  TestsuiteObject * pool = [TestsuiteObject new];
8
  int a;
9
 
10
  if ( 1 ) {
11
 
12
    @try {
13
      a = 1;
14
    }
15
    @catch (TestsuiteObject *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.