-// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
-// { dg-options " -std=gnu++11 -pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* powerpc-ibm-aix* } }
-// { dg-options " -std=gnu++11 -pthreads" { target *-*-solaris* } }
-// { dg-options " -std=gnu++11 " { target *-*-cygwin *-*-darwin* } }
+// { dg-do run }
+// { dg-options "-pthread" }
+// { dg-require-effective-target c++11 }
+// { dg-require-effective-target pthread }
// { dg-require-cstdint "" }
-// { dg-require-gthreads-timed "" }
-// Copyright (C) 2008-2014 Free Software Foundation, Inc.
+// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
#include <mutex>
#include <chrono>
+#include <cstdint>
#include <system_error>
#include <testsuite_hooks.h>
int main()
{
- bool test __attribute__((unused)) = true;
typedef std::timed_mutex mutex_type;
- typedef std::chrono::duration<int64_t, std::pico> picoseconds;
+ typedef std::chrono::duration<std::int64_t, std::pico> picoseconds;
try
{