libstdc++: [_Hashtable] Fix some implementation inconsistencies
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / noexcept40.C
blob2effcef52d6fbaf794340b37a59fdde84bf742b3
1 // PR c++/56643
2 // { dg-do compile { target c++11 } }
4 template <int N>
5 struct Test {
6     template <int M>
7     friend void test(Test<M>& arg) noexcept(M == 0);
8 };
10 template <int N>
11 void test(Test<N>& arg) noexcept(N == 0) {}
13 int main() {
14     Test<0> t;
15     test(t);
16     return 0;