repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
ext
/
attrib6.C
blob
2bdb180d1b4664a2fd7925b03017d2d634ef0deb
1
// 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