diff options
author | Dan Albert <danalbert@google.com> | 2015-10-13 16:28:19 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-10-13 16:28:19 -0700 |
commit | a8c075f72b231c37823661ba0d7d082a21cd39d9 (patch) | |
tree | 395aa3b848d56037292e50466643453485073018 /gcc-4.8/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc | |
parent | 5aff2e0142aca13849b4e51de503e71d5010efa6 (diff) | |
download | toolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.tar.gz toolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.tar.bz2 toolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.zip |
Remove gcc-4.8.
Change-Id: Iee9c6985c613f58c82e33a91722d371579eb290f
Diffstat (limited to 'gcc-4.8/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc')
-rw-r--r-- | gcc-4.8/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/gcc-4.8/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc b/gcc-4.8/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc deleted file mode 100644 index 956d506d7..000000000 --- a/gcc-4.8/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc +++ /dev/null @@ -1,51 +0,0 @@ -// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } } -// { dg-options " -std=gnu++11 -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-gnu* powerpc-ibm-aix* } } -// { dg-options " -std=gnu++11 -pthreads" { target *-*-solaris* } } -// { dg-options " -std=gnu++11 " { target *-*-cygwin *-*-darwin* } } -// { dg-require-cstdint "" } -// { dg-require-gthreads "" } -// { dg-require-atomic-builtins "" } - -// Copyright (C) 2014 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 -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. - -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// <http://www.gnu.org/licenses/>. - - -#include <future> -#include <testsuite_hooks.h> - -struct X -{ - X() = default; - X(const X&) = default; - X(X&& x) { x.moved = true; } - - void operator()() const { } - - bool moved = false; -}; - -void test01() -{ - X x; - std::packaged_task<void()> p(x); - VERIFY( !x.moved ); -} - -int main() -{ - test01(); -} |