]>
Commit | Line | Data |
---|---|---|
bd80bd9b BK |
1 | // { dg-do compile } |
2 | // -*- C++ -*- | |
3 | ||
a945c346 | 4 | // Copyright (C) 2004-2024 Free Software Foundation, Inc. |
bd80bd9b BK |
5 | |
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 |
bd80bd9b BK |
9 | // your option) any later version. |
10 | ||
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. | |
15 | ||
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/>. | |
bd80bd9b | 19 | |
bd80bd9b BK |
20 | |
21 | // Benjamin Kosnik <bkoz@redhat.com> | |
22 | ||
23 | #include <ios> | |
50ce8d3d | 24 | #include <testsuite_common_types.h> |
bd80bd9b BK |
25 | |
26 | int main() | |
27 | { | |
28 | __gnu_test::bitmask_operators<std::ios_base::fmtflags>(); | |
9ae63018 | 29 | } |
cf918498 JW |
30 | // { dg-warning "ignoring return value.*operator\\|" "" { target c++17 } 0 } |
31 | // { dg-warning "ignoring return value.*operator&" "" { target c++17 } 0 } | |
32 | // { dg-warning "ignoring return value.*operator\\^" "" { target c++17 } 0 } | |
33 | // { dg-warning "ignoring return value.*operator~" "" { target c++17 } 0 } |