aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept7.C
blob: 2a70d7bb5298ce6303218cd132bfa517279f4e78 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/53473
// { dg-do compile { target c++11 } }

template<typename T> struct A
{
  static constexpr T foo() noexcept { return 0; }
};

template<> constexpr int A<int>::foo() noexcept { return 0; }