aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction55.C
blob: 74fd29f66dc4517e809ad8e27b42ce2bf627a5ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/85883
// { dg-do compile { target c++17 } }

template <typename T>
struct Bar
{
  Bar(T) { }
};

int
main ()
{
  auto x = Bar(1);
  auto y = new Bar(3);
}