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

constexpr bool ok() noexcept
{
  typedef int type;
  return true;
}

constexpr auto x = ok();