aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/mangle1.C
blob: 0642f147984b5e89901bf7c5938201a910b322fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test that the parens don't show up in the mangling
// { dg-do compile { target c++1y } }
// { dg-options "-Wno-return-local-addr" }
// { dg-final { scan-assembler "_Z1gI1AEDTdtfp_1iET_" } }

struct A { int i; };

template <class T>
auto g(T t)->decltype((t.i)) { return t.i; }

int main()
{
  g(A());
}