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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/49932
2
// { dg-options "-std=c++0x -fabi-version=0" }
3
 
4
template < typename T >
5
auto
6
f1( T x ) // ICE on here
7
  -> typename decltype( x )::type {}
8
 
9
template < typename T >
10
typename decltype( T() )::type
11
f2( T x ) {} // ICE on here
12
 
13
struct S { typedef void type; };
14
 
15
void g()
16
{
17
  f1( S() );
18
  f2( S() );
19
}
20
 
21
// { dg-final { scan-assembler "_Z2f1I1SENDtfp_E4typeET_" } }
22
// { dg-final { scan-assembler "_Z2f2I1SENDTcvT__EE4typeES1_" } }

powered by: WebSVN 2.1.0

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