Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d0029fc5
Commit
d0029fc5
authored
Apr 28, 2001
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
From-SVN: r41652
parent
ad34a822
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
gcc/testsuite/g++.old-deja/g++.eh/inline2.C
+24
-0
gcc/testsuite/g++.old-deja/g++.eh/terminate2.C
+16
-0
No files found.
gcc/testsuite/g++.old-deja/g++.eh/inline2.C
0 → 100644
View file @
d0029fc5
// Test that inlining a destructor with a catch block doesn't confuse the
// enclosing try block.
// Special g++ Options: -O
struct
A
{
~
A
()
{
try
{
throw
1
;
}
catch
(...)
{
}
}
};
int
main
()
{
try
{
A
a
;
throw
42
;
}
catch
(
int
i
)
{
return
(
i
!=
42
);
}
}
gcc/testsuite/g++.old-deja/g++.eh/terminate2.C
0 → 100644
View file @
d0029fc5
// Test that an unhandled exception causes us to call terminate.
#include <exception>
#include <cstdlib>
void
my_terminate
()
{
std
::
exit
(
0
);
}
int
main
(
void
)
{
std
::
set_terminate
(
my_terminate
);
throw
1
;
return
1
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment