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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-std=c++0x -fabi-version=0" }
2
 
3
int i;
4
// { dg-final { scan-assembler "_Z2f1IiEDTppfp_ET_" } }
5
template  auto f1 (T t) -> decltype(t++) { return i; }
6
// { dg-final { scan-assembler "_Z2f2IiEDTpp_fp_ET_" } }
7
template  auto f2 (T t) -> decltype(++t) { return i; }
8
// { dg-final { scan-assembler "_Z2f3IiEDTmmfp_ET_" } }
9
template  auto f3 (T t) -> decltype(t--) { return i; }
10
// { dg-final { scan-assembler "_Z2f4IiEDTmm_fp_ET_" } }
11
template  auto f4 (T t) -> decltype(--t) { return i; }
12
 
13
int main()
14
{
15
  f1(0);
16
  f2(0);
17
  f3(0);
18
  f4(0);
19
}

powered by: WebSVN 2.1.0

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