PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / noexcept22.C
blob7aab0f43c4ea28ae8cc86ad6f7e703034c1bf543
1 // PR c++/60046
2 // { dg-require-effective-target c++11 }
4 constexpr bool foo () { return noexcept (true); }
5 template <typename T>
6 struct V
8   void bar (V &) noexcept (foo ()) {}
9 };
10 template <typename T>
11 struct W : public V <int>
13   void bar (W &x) { V <int>::bar (x); }
16 int
17 main ()
19   W <int> a, b;
20   a.bar (b);