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
c8af9937
Commit
c8af9937
authored
Dec 29, 2001
by
Richard Henderson
Committed by
Richard Henderson
Dec 29, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.dg/eh/loop1.C: New.
From-SVN: r48378
parent
b7fe373b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/eh/loop1.C
+30
-0
No files found.
gcc/testsuite/ChangeLog
View file @
c8af9937
2001-12-29 Richard Henderson <rth@redhat.com>
* g++.dg/eh/loop1.C: New.
2001-12-29 Nathan Sidwell <nathan@codesourcery.com>
* g++.dg/template/crash1.C: New test.
...
...
gcc/testsuite/g++.dg/eh/loop1.C
0 → 100644
View file @
c8af9937
// Verify that loop optimization takes into account the exception edge
// and does not increment I before the call.
// { dg-do run }
// { dg-options "-O2" }
extern
"C"
void
abort
();
static
void
bar
(
char
*
);
static
void
foo
(
unsigned
long
element_count
,
char
*
ptr
)
{
unsigned
long
i
;
try
{
for
(
i
=
0
;
i
!=
element_count
;
i
++
,
ptr
+=
8
)
bar
(
ptr
);
}
catch
(...)
{
if
(
i
)
abort
();
}
}
static
void
bar
(
char
*
)
{
throw
1
;
}
int
main
()
{
foo
(
2
,
0
);
}
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