Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/noexcept40.C

raw
1 // PR c++/56643
2 // { dg-do compile { target c++11 } }
3
4 template <int N>
5 struct Test {
6 template <int M>
7 friend void test(Test<M>& arg) noexcept(M == 0);
8 };
9
10 template <int N>
11 void test(Test<N>& arg) noexcept(N == 0) {}
12
13 int main() {
14 Test<0> t;
15 test(t);
16 return 0;
17 }