]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/29_atomics/atomic_integral/operators/increment_neg.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 29_atomics / atomic_integral / operators / increment_neg.cc
CommitLineData
8868286e 1// { dg-options "-std=gnu++11" }
e6dbf630 2// { dg-do compile }
3// -*- C++ -*-
2c122b5c 4
f1717362 5// Copyright (C) 2008-2016 Free Software Foundation, Inc.
2c122b5c 6
e6dbf630 7// This library is free software; you can redistribute it and/or
8// modify it under the terms of the GNU General Public License as
6bc9506f 9// published by the Free Software Foundation; either version 3, or (at
e6dbf630 10// your option) any later version.
2c122b5c 11
e6dbf630 12// This library is distributed in the hope that it will be useful, but
13// WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15// General Public License for more details.
2c122b5c 16
e6dbf630 17// You should have received a copy of the GNU General Public License
6bc9506f 18// along with this library; see the file COPYING3. If not see
19// <http://www.gnu.org/licenses/>.
2c122b5c 20
21#include <atomic>
e6dbf630 22#include <testsuite_common_types.h>
23
24int main()
25{
26 __gnu_test::has_increment_operators test;
27 test.operator()<std::atomic_bool>();
28 return 0;
29}
30
95da0dc6 31// { dg-error "operator" "" { target *-*-* } 406 }
db425506 32// { dg-error "operator" "" { target *-*-* } 407 }
33// { dg-error "operator" "" { target *-*-* } 408 }