mirror of git://gcc.gnu.org/git/gcc.git
* testsuite/30_threads/thread/70503.cc: Adjust from xfail to pass.
From-SVN: r234808
This commit is contained in:
parent
2e13f1c6c7
commit
6da8b93163
|
|
@ -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>
|
2016-04-06 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
* src/Makefile.am (libstdc++-symbols.ver): Remove useless /dev/null.
|
* src/Makefile.am (libstdc++-symbols.ver): Remove useless /dev/null.
|
||||||
|
|
|
||||||
|
|
@ -16,19 +16,23 @@
|
||||||
// <http://www.gnu.org/licenses/>.
|
// <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
// { dg-do link }
|
// { dg-do link }
|
||||||
// { dg-options " -std=gnu++11 -static" { target *-*-*gnu* } }
|
// { dg-options "-std=gnu++11 -static" { target *-*-*gnu* } }
|
||||||
// { dg-require-cstdint "" }
|
// { dg-require-cstdint "" }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
// { dg-require-effective-target static }
|
// { dg-require-effective-target static }
|
||||||
|
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
void execute_native_thread_routine(void);
|
// Should not get multiple definition errors from libstdc++.a(thread.o)
|
||||||
void execute_native_thread_routine_compat(void);
|
void execute_native_thread_routine(void) { }
|
||||||
|
void execute_native_thread_routine_compat(void) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
execute_native_thread_routine(); // { dg-error "undefined reference" }
|
execute_native_thread_routine();
|
||||||
execute_native_thread_routine_compat(); // { dg-error "undefined reference" }
|
execute_native_thread_routine_compat();
|
||||||
|
|
||||||
|
std::thread{}.detach(); // ensure libstdc++.a(thread.o) is linked in
|
||||||
}
|
}
|
||||||
// { dg-prune-output "collect2: error: ld returned" }
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue