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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic75.C] - Blame information for rev 307

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-options "-std=gnu++0x" }
2
 
3
template struct tuple { };
4
 
5
template class Meta, typename... Values>
6
struct apply_all
7
{
8
  typedef tuple::type...> type;
9
};
10
 
11
template
12
struct is_same {
13
  static const bool value = false;
14
};
15
 
16
template
17
struct is_same {
18
  static const bool value = true;
19
};
20
 
21
template
22
struct add_reference {
23
  typedef T& type;
24
};
25
 
26
template
27
struct add_reference {
28
  typedef T& type;
29
};
30
 
31
static_assert(is_same::type,
32
                                tuple >::value,
33
              "check apply");

powered by: WebSVN 2.1.0

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