☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction56.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/class-deduction56.C
code
plain
raw
1
// PR c++/85883
2
// { dg-do compile { target c++17 } }
3
4
template <typename T1, typename T2>
5
struct Bar
6
{
7
Bar(T1, T2) { }
8
};
9
10
int
11
main ()
12
{
13
auto x = Bar(1, 2);
14
auto y = new Bar(3, 4);
15
}