]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc
Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 29_atomics / atomic_integral / operators / decrement_neg.cc
1 // { dg-options "-std=gnu++0x" }
2 // { dg-do compile }
3 // -*- C++ -*-
4
5 // Copyright (C) 2008, 2009 Free Software Foundation, Inc.
6
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
9 // published by the Free Software Foundation; either version 3, or (at
10 // your option) any later version.
11
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.
16
17 // You should have received a copy of the GNU General Public License
18 // along with this library; see the file COPYING3. If not see
19 // <http://www.gnu.org/licenses/>.
20
21
22 #include <cstdatomic>
23 #include <testsuite_common_types.h>
24
25 int main()
26 {
27 __gnu_test::has_decrement_operators test;
28 test.operator()<std::atomic_bool>();
29 return 0;
30 }
31
32 // { dg-error "operator" "" { target *-*-* } 375 }
33 // { dg-error "operator" "" { target *-*-* } 376 }
34 // { dg-error "operator" "" { target *-*-* } 377 }
35 // { dg-excess-errors "In file included from" }