Debian Codegraph @

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

raw
1 // PR c++/82099
2 // { dg-do compile { target c++11 } }
3
4 template <typename T, typename U>
5 void bar (T &x, T &y, U u)
6 {
7 u (x, y);
8 }
9
10 template <typename T>
11 void baz (T &x, T &y) noexcept (noexcept (x == y));
12
13 void
14 foo (int x, int y)
15 {
16 bar (x, y, baz<int>);
17 }