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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
mangle1.C
blob
0642f147984b5e89901bf7c5938201a910b322fd
1
// Test that the parens don't show up in the mangling
2
// { dg-do compile { target c++1y } }
3
// { dg-options "-Wno-return-local-addr" }
4
// { dg-final { scan-assembler "_Z1gI1AEDTdtfp_1iET_" } }
5
6
struct A { int i; };
7
8
template <class T>
9
auto g(T t)->decltype((t.i)) { return t.i; }
10
11
int main()
12
{
13
g(A());
14
}