diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-04-07 15:26:24 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-04-07 15:26:24 +0100 |
commit | 6da8b9316327f32cf907e020a9c6a6b9c643b465 (patch) | |
tree | f637965181ac5db562ac48e1faa836e0c4dc2be7 | |
parent | 2e13f1c6c7b4f2ca6f317aa3767e916366469c51 (diff) | |
download | gcc-6da8b9316327f32cf907e020a9c6a6b9c643b465.zip gcc-6da8b9316327f32cf907e020a9c6a6b9c643b465.tar.gz gcc-6da8b9316327f32cf907e020a9c6a6b9c643b465.tar.bz2 |
* testsuite/30_threads/thread/70503.cc: Adjust from xfail to pass.
From-SVN: r234808
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/30_threads/thread/70503.cc | 16 |
2 files changed, 14 insertions, 6 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2a3d742..48a13fa 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +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. diff --git a/libstdc++-v3/testsuite/30_threads/thread/70503.cc b/libstdc++-v3/testsuite/30_threads/thread/70503.cc index 950d754..3b64ef8 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/70503.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/70503.cc @@ -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" } |