aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/noexcept12.C
blob: 185364b0f8b2b6fcd7fb2a88d758d22032d0c92a (plain)
1
2
3
4
5
6
7
8
9
10
11
// Test that we handle merging with deferred noexcept.
// { dg-do compile { target c++11 } }

template <class U>
struct O
{
  template <class T>
  void f() noexcept(noexcept(T()));
};

template<> template<> void O<int>::f<int>() noexcept { }