OSDN Git Service

2008-12-11 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 29_atomics / atomic_integral / operators / increment_neg.cc
1 // { dg-options "-std=gnu++0x" }
2 // { dg-do compile }
3 // -*- C++ -*-
4  
5 // Copyright (C) 2008 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 2, 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 COPYING.  If not, write to
19 // the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
20 // MA 02110-1301, USA.
21  
22 // As a special exception, you may use this file as part of a free
23 // software library without restriction.  Specifically, if other files
24 // instantiate templates or use macros or inline functions from this
25 // file, or you compile this file and link it with other files to
26 // produce an executable, this file does not by itself cause the
27 // resulting executable to be covered by the GNU General Public
28 // License.  This exception does not however invalidate any other
29 // reasons why the executable file might be covered by the GNU General
30 // Public License.
31  
32 #include <cstdatomic>
33 #include <testsuite_common_types.h>
34
35 int main()
36 {
37   __gnu_test::has_increment_operators test;
38   test.operator()<std::atomic_bool>();
39   return 0;
40 }
41
42 // { dg-error "operator" "" { target *-*-* } 362 }
43 // { dg-error "operator" "" { target *-*-* } 363 }
44 // { dg-error "operator" "" { target *-*-* } 364 }
45 // { dg-excess-errors "In file included from" }