OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [ld/] [testsuite/] [ld-elf/] [dl3main.cc] - Blame information for rev 332

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

Line No. Rev Author Line
1 38 julius
#include <stdio.h>
2
#include "dl3header.h"
3
 
4
extern void f (void);
5
 
6
int
7
main (void)
8
{
9
  try
10
    {
11
      f();
12
    }
13
  catch (A a)
14
    {
15
      if (a.i == 42)
16
        printf ("OK\n");
17
      else
18
        printf ("BAD1\n");
19
    }
20
  catch (...)
21
    {
22
      printf ("BAD2\n");
23
    }
24
  return 0;
25
}

powered by: WebSVN 2.1.0

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