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
6da8b931
Commit
6da8b931
authored
Apr 07, 2016
by
Jonathan Wakely
Committed by
Jonathan Wakely
Apr 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* testsuite/30_threads/thread/70503.cc: Adjust from xfail to pass.
From-SVN: r234808
parent
2e13f1c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
libstdc++-v3/ChangeLog
+4
-0
libstdc++-v3/testsuite/30_threads/thread/70503.cc
+10
-6
No files found.
libstdc++-v3/ChangeLog
View file @
6da8b931
2016-04-07 Jonathan Wakely <jwakely@redhat.com>
* testsuite/30_threads/thread/70503.cc: Adjust from xfail to pass.
2016-04-06 Eric Botcazou <ebotcazou@adacore.com>
* src/Makefile.am (libstdc++-symbols.ver): Remove useless /dev/null.
...
...
libstdc++-v3/testsuite/30_threads/thread/70503.cc
View file @
6da8b931
...
...
@@ -16,19 +16,23 @@
// <http://www.gnu.org/licenses/>.
// { dg-do link }
// { dg-options "
-std=gnu++11 -static" { target *-*-*gnu* } }
// { dg-options "-std=gnu++11 -static" { target *-*-*gnu* } }
// { dg-require-cstdint "" }
// { dg-require-gthreads "" }
// { dg-require-effective-target static }
#include <thread>
extern
"C"
{
void
execute_native_thread_routine
(
void
);
void
execute_native_thread_routine_compat
(
void
);
// Should not get multiple definition errors from libstdc++.a(thread.o)
void
execute_native_thread_routine
(
void
)
{
}
void
execute_native_thread_routine_compat
(
void
)
{
}
}
int
main
()
{
execute_native_thread_routine
();
// { dg-error "undefined reference" }
execute_native_thread_routine_compat
();
// { dg-error "undefined reference" }
execute_native_thread_routine
();
execute_native_thread_routine_compat
();
std
::
thread
{}.
detach
();
// ensure libstdc++.a(thread.o) is linked in
}
// { dg-prune-output "collect2: error: ld returned" }
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