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
SH: Fix cost estimation of mem load/store
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn12.C
blob
98885799de989ce1d1fa5f158afeeb9205451100
1
// { dg-do compile { target c++14 } }
2
// { dg-final { scan-assembler "_ZN1AIiEcvDaEv" } }
3
// { dg-additional-options -fno-implicit-constexpr }
4
5
template <class T>
6
struct A {
7
T t;
8
operator auto() { return t+1; }
9
};
10
11
int main()
12
{
13
int i = A<int>{42};
14
return (i != 43);
15
}