URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// 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() { }
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.