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
accabadc
Commit
accabadc
authored
Aug 21, 2006
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert accidental checkin of tests
From-SVN: r116312
parent
c6c7698d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
87 deletions
+0
-87
gcc/testsuite/g++.dg/abi/forced-sticky.C
+0
-62
gcc/testsuite/g++.dg/abi/forced.C
+0
-25
No files found.
gcc/testsuite/g++.dg/abi/forced-sticky.C
deleted
100644 → 0
View file @
c6c7698d
// Test for "sticky cancel": if a catch (...) block discards the
// cancellation exception, a new one is raised at the next cancellation
// point.
// This test only applies to glibc targets.
// { dg-do run { target *-*-linux* } }
// { dg-options "-pthread" }
#include <pthread.h>
#include <cxxabi.h>
extern
"C"
int
printf
(
const
char
*
,
...);
void
*
thread_main
(
void
*
)
{
try
{
// Spin until we get cancelled.
while
(
1
)
pthread_testcancel
();
}
catch
(...)
{
// Catch and discard the forced unwind.
printf
(
"caught ...
\n
"
);
}
try
{
// Start unwinding again.
pthread_testcancel
();
}
catch
(...)
{
// Catch and discard again. This time the thread exits before the
// next cancellation point, so we're done.
printf
(
"caught ... again
\n
"
);
return
0
;
}
return
(
void
*
)
4
;
}
int
main
()
{
pthread_t
thread
;
int
r
;
void
*
p
;
r
=
pthread_create
(
&
thread
,
NULL
,
thread_main
,
NULL
);
if
(
r
)
return
1
;
r
=
pthread_cancel
(
thread
);
if
(
r
)
return
2
;
r
=
pthread_join
(
thread
,
&
p
);
if
(
r
)
return
3
;
return
(
int
)
p
;
}
gcc/testsuite/g++.dg/abi/forced.C
deleted
100644 → 0
View file @
c6c7698d
// This test only applies to glibc (NPTL) targets.
// { dg-do run { target *-*-linux* } }
// { dg-options "-pthread" }
#include <pthread.h>
#include <cxxabi.h>
extern
"C"
int
printf
(
const
char
*
,
...);
int
main
()
{
try
{
pthread_exit
(
0
);
}
catch
(
abi
::
__forced_unwind
&
)
{
printf
(
"caught forced unwind
\n
"
);
throw
;
}
catch
(...)
{
printf
(
"caught ...
\n
"
);
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