aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/DRs/dr2392.C
blob: e24d6a7f9287b56353f3583cdb9c0e2feb6f707b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// DR 2392
// { dg-do compile { target c++11 } }

template <class T = void>
constexpr int
foo ()
{
  T t;
  return 1;
}

using V = decltype (new int[foo ()]);