aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction56.C
blob: 6cf54b31e2dc64b09f3d47e57e3cac54d08f3e03 (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 T1, typename T2>
struct Bar
{
  Bar(T1, T2) { }
};

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