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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [attrib6.C] - Blame information for rev 696

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

Line No. Rev Author Line
1 693 jeremybenn
// Copyright (C) 2002  Free Software Foundation.
2
//
3
// Test that the nothrow attribute is working correctly.
4
//
5
// Written by Richard Henderson, 26 May 2002.
6
 
7
// { dg-do link }
8
extern void foo() __attribute__((nothrow));
9
extern void link_error();
10
 
11
int main()
12
{
13
  try {
14
    foo();
15
  } catch (...) {
16
    link_error();
17
  }
18
}
19
 
20
void foo() { }
21
 

powered by: WebSVN 2.1.0

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