Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/constexpr-friend-3.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/65977 |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 template<__SIZE_TYPE__> | |
5 class bitset; | |
6 | |
7 template<__SIZE_TYPE__ N> | |
8 constexpr bool operator==(const bitset<N>&, const bitset<N>&) noexcept; | |
9 | |
10 template<__SIZE_TYPE__ N> | |
11 class bitset | |
12 { | |
13 friend constexpr bool operator== <>(const bitset<N>&, | |
14 const bitset<N>&) noexcept; | |
15 }; | |
16 | |
17 template<__SIZE_TYPE__ N> | |
18 constexpr bool operator==(const bitset<N>&, const bitset<N>&) noexcept | |
19 { | |
20 return true; | |
21 } |