]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/2.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 30_threads / timed_mutex / try_lock_for / 2.cc
index f98dc00473733c80e114822852d79066a51c89f8..186951bdcc3e5c740265e5da0905387f3b3c8bf2 100644 (file)
@@ -1,11 +1,10 @@
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } }
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } }
-// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
-// { dg-options " -std=gnu++0x " { 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, 2009, 2010, 2011, 2012 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 
     {