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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle59.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
// { dg-final { scan-assembler "_Z1fIiEDTcmdlfp_psfp_EPT_" } }
4
template  auto f (T* p) -> decltype(delete p, +p) { return p; }
5
// { dg-final { scan-assembler "_Z1gIiEDTcmgsdlfp_psfp_EPT_" } }
6
template  auto g (T* p) -> decltype(::delete p, +p) { return p; }
7
// { dg-final { scan-assembler "_Z1hIiEDTcmdafp_psfp_EPT_" } }
8
template  auto h (T* p) -> decltype(delete[] p, +p) { return p; }
9
// { dg-final { scan-assembler "_Z1iIiEDTcmgsdafp_psfp_EPT_" } }
10
template  auto i (T* p) -> decltype(::delete[] p, +p) { return p; }
11
 
12
int main()
13
{
14
  int x;
15
  f(&x);
16
  g(&x);
17
  h(&x);
18
  i(&x);
19
}

powered by: WebSVN 2.1.0

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