annotate libstdc++-v3/testsuite/30_threads/call_once/once_flag.cc @ 117:f81c5aa9f14f

fix
author mir3636
date Tue, 28 Nov 2017 21:17:15 +0900
parents 04ced10e8804
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // { dg-do compile { target c++11 } }
kono
parents:
diff changeset
2 // { dg-require-cstdint "" }
kono
parents:
diff changeset
3 // { dg-require-gthreads "" }
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 // Copyright (C) 2008-2017 Free Software Foundation, Inc.
kono
parents:
diff changeset
6 //
kono
parents:
diff changeset
7 // This file is part of the GNU ISO C++ Library. This library is free
kono
parents:
diff changeset
8 // software; you can redistribute it and/or modify it under the
kono
parents:
diff changeset
9 // terms of the GNU General Public License as published by the
kono
parents:
diff changeset
10 // Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
11 // any later version.
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 // This library is distributed in the hope that it will be useful,
kono
parents:
diff changeset
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
16 // GNU General Public License for more details.
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 // You should have received a copy of the GNU General Public License along
kono
parents:
diff changeset
19 // with this library; see the file COPYING3. If not see
kono
parents:
diff changeset
20 // <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 #include <mutex>
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 void test01()
kono
parents:
diff changeset
26 {
kono
parents:
diff changeset
27 std::once_flag once_flag;
kono
parents:
diff changeset
28 }