]>
Commit | Line | Data |
---|---|---|
52066eae | 1 | // { dg-do compile { target c++11 } } |
50ce8d3d | 2 | // -*- C++ -*- |
afd88205 | 3 | |
83ffe9cd | 4 | // Copyright (C) 2008-2023 Free Software Foundation, Inc. |
afd88205 | 5 | |
50ce8d3d BK |
6 | // This library is free software; you can redistribute it and/or |
7 | // modify it under the terms of the GNU General Public License as | |
748086b7 | 8 | // published by the Free Software Foundation; either version 3, or (at |
50ce8d3d | 9 | // your option) any later version. |
afd88205 | 10 | |
50ce8d3d BK |
11 | // This library is distributed in the hope that it will be useful, but |
12 | // WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | // General Public License for more details. | |
afd88205 | 15 | |
50ce8d3d | 16 | // You should have received a copy of the GNU General Public License |
748086b7 JJ |
17 | // along with this library; see the file COPYING3. If not see |
18 | // <http://www.gnu.org/licenses/>. | |
afd88205 BK |
19 | |
20 | #include <atomic> | |
50ce8d3d BK |
21 | #include <testsuite_common_types.h> |
22 | ||
23 | int main() | |
24 | { | |
25 | __gnu_test::has_decrement_operators test; | |
26 | test.operator()<std::atomic_bool>(); | |
27 | return 0; | |
28 | } | |
29 | ||
5c6759e4 JW |
30 | // { dg-error "operator" "" { target *-*-* } 451 } |
31 | // { dg-error "operator" "" { target *-*-* } 452 } | |
32 | // { dg-error "operator" "" { target *-*-* } 453 } |