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
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn12.C
blob
224f2789bcd8f98811c13f553ac9e3660b9a5671
1
// { dg-do compile { target c++14 } }
2
// { dg-final { scan-assembler "_ZN1AIiEcvDaEv" } }
3
4
template <class T>
5
struct A {
6
T t;
7
operator auto() { return t+1; }
8
};
9
10
int main()
11
{
12
int i = A<int>{42};
13
return (i != 43);
14
}