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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [sfinae28.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
// Origin: PR c++/44267
2
 
3
struct B {};
4
struct D : B {};
5
struct VD : virtual B {};
6
 
7
template  T create();
8
 
9
typedef char one[1];
10
typedef char two[2];
11
 
12
template 
13
one& f(char (*)[sizeof(static_cast(create()))]);
14
 
15
template 
16
two& f(...);
17
 
18
int main()
19
{
20
   f(0);
21
   f(0);
22
   f(0);
23
   return 0;
24
}

powered by: WebSVN 2.1.0

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