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] - Rev 693

Compare with Previous | Blame | View Log

// PR c++/51852
// { dg-do compile }
// { dg-options "-std=gnu++11 --param ggc-min-heapsize=0 --param ggc-min-expand=0" }

template <typename, typename>
class transformed {};

template <class R, class F>
transformed<F, R> transform (R r, F f);

template <typename, typename>
class joined {};

template <typename T, typename U>
joined<T, U> join (T t, U u);

template <typename T, typename U, typename V, typename... Rest>
auto join (T t, U u, V v, Rest... rest) -> decltype (join (join (t, u), v, rest...));

template <typename F, typename... Rs>
auto polymorphic_transform (F f, Rs... rs) -> decltype (join (transform(rs, f)...));

int
main ()
{
  polymorphic_transform (0, 0, 0);
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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