OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle56.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-std=c++0x" }
2
 
3
template  T g(T t1, T t2) { return t2; }
4
// { dg-final { scan-assembler "_Z2f1IiEDTcl1gfp_ilEEET_" } }
5
template  auto f1 (T t) -> decltype(g(t,{})) { return g(t,{}); }
6
// { dg-final { scan-assembler "_Z2f2IiEDTcl1gfp_tlT_EEES0_" } }
7
template  auto f2 (T t) -> decltype(g(t,T{})) { return g(t,T{}); }
8
 
9
int main()
10
{
11
  f1(0);
12
  f2(0);
13
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.