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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle39.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
// PR c++/42338
2
// { dg-options "-std=c++0x -fabi-version=5" }
3
// { dg-final { scan-assembler "_Z1fIPiEDTcmppfp_Li0EET_" } }
4
// { dg-final { scan-assembler "_Z1gIiEvRK1AIT_EDTixfL0p_Li0EE" } }
5
 
6
template
7
auto f(T t) -> decltype(++t, 0)
8
{
9
  ++t;
10
  return 0;
11
}
12
 
13
template 
14
struct A
15
{
16
  T operator[](int) const { return 0; }
17
};
18
 
19
template< typename T >
20
void g(const A &a, decltype(a[0]) t) { }
21
 
22
int main()
23
{
24
  f((int*)0);
25
 
26
  A a;
27
  g(a,1);
28
}

powered by: WebSVN 2.1.0

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