Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp1y/mangle1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // Test that the parens don't show up in the mangling |
2 // { dg-do compile { target c++14 } } | |
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 } |