aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-07 14:26:24 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-07 14:26:24 +0000
commit371df5e92574fbc49cc266bd4f30238456016a49 (patch)
treef637965181ac5db562ac48e1faa836e0c4dc2be7 /libstdc++-v3
parentf712d4837ab80e40689e13bf810591636c745fae (diff)
* testsuite/30_threads/thread/70503.cc: Adjust from xfail to pass.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234808 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/testsuite/30_threads/thread/70503.cc16
2 files changed, 14 insertions, 6 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 2a3d7428a00..48a13fa90a6 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 950d75416ce..3b64ef8d2de 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" }