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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic18.C] - Blame information for rev 707

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-std=gnu++0x" }
2
template class tuple { };
3
 
4
template class... Metafunctions>
5
struct apply_all
6
{
7
  typedef tuple::type...> type;
8
};
9
 
10
template
11
struct is_same {
12
  static const bool value = false;
13
};
14
 
15
template
16
struct is_same {
17
  static const bool value = true;
18
};
19
 
20
template
21
struct add_pointer {
22
  typedef T* type;
23
};
24
 
25
template
26
struct add_pointer
27
{
28
  typedef T& type;
29
};
30
 
31
template
32
struct add_reference {
33
  typedef T& type;
34
};
35
 
36
template
37
struct add_reference
38
{
39
  typedef T& type;
40
};
41
 
42
int a0[is_same::type,tuple<> >::value? 1 : -1];
43
int a1[is_same::type,tuple >::value? 1 : -1];
44
int a2[is_same::type,tuple >::value? 1 : -1];
45
int a3[is_same::type,tuple >::value? 1 : -1];
46
 
47
 

powered by: WebSVN 2.1.0

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