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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [attrib6.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// Copyright (C) 2002  Free Software Foundation.
// Copyright (C) 2002  Free Software Foundation.
//
//
// Test that the nothrow attribute is working correctly.
// Test that the nothrow attribute is working correctly.
//
//
// Written by Richard Henderson, 26 May 2002.
// Written by Richard Henderson, 26 May 2002.
// { dg-do link }
// { dg-do link }
extern void foo() __attribute__((nothrow));
extern void foo() __attribute__((nothrow));
extern void link_error();
extern void link_error();
int main()
int main()
{
{
  try {
  try {
    foo();
    foo();
  } catch (...) {
  } catch (...) {
    link_error();
    link_error();
  }
  }
}
}
void foo() { }
void foo() { }
 
 

powered by: WebSVN 2.1.0

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