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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [gc5.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/51852
2
// { dg-do compile }
3
// { dg-options "-std=gnu++11 --param ggc-min-heapsize=0 --param ggc-min-expand=0" }
4
 
5
template 
6
class transformed {};
7
 
8
template 
9
transformed transform (R r, F f);
10
 
11
template 
12
class joined {};
13
 
14
template 
15
joined join (T t, U u);
16
 
17
template 
18
auto join (T t, U u, V v, Rest... rest) -> decltype (join (join (t, u), v, rest...));
19
 
20
template 
21
auto polymorphic_transform (F f, Rs... rs) -> decltype (join (transform(rs, f)...));
22
 
23
int
24
main ()
25
{
26
  polymorphic_transform (0, 0, 0);
27
}

powered by: WebSVN 2.1.0

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