repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction36.C
blob
a9c95fe9fc4b1df6b1de085da28535af7d3e22c2
1
// { dg-do compile { target c++17 } }
2
3
template <class T> struct A {
4
A(T&);
5
A(const A&);
6
};
7
8
int i;
9
A a = i;
10
A a2 = a;
11
12
template <class,class> struct same;
13
template <class T> struct same<T,T> {};
14
same<decltype(a),A<int>> s1;
15
same<decltype(a2),A<int>> s2;