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/] [variadic92.C] - Blame information for rev 320

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

Line No. Rev Author Line
1 301 jeremybenn
// Various tests for variadic templates and partial specialization.
2
// { dg-options "-std=c++0x" }
3
 
4
// PR c++/36846
5
template
6
struct pair;
7
 
8
template
9
struct pairs;
10
 
11
template
12
struct pairs...> {
13
  struct mismatched_packs {};
14
};
15
 
16
template class pairs<
17
  pair,
18
  pair
19
>;
20
 
21
template
22
struct point;
23
 
24
template
25
struct points;
26
 
27
template
28
struct points...> {
29
  struct mismatched_packs {};
30
};
31
 
32
template class points<
33
  point<0, 1>,
34
  point<0, 1>
35
>;
36
 
37
// PR c++/35477
38
template  struct tuple {};
39
template  struct test {};
40
template  struct test>
41
{
42
    template  struct inside {};
43
};
44
 
45
// PR c++/38276
46
template struct A;
47
 
48
template struct B;
49
 
50
template struct B, A >
51
{
52
  static int i;
53
};
54
 
55
B, A > b1;
56
 
57
B, A<> > b2;
58
 
59
// PR c++/35784
60
template  struct p;
61
 
62
template  struct d;
63
 
64
template 
65
struct d, p > { typedef int t; };
66
 
67
typedef d, p >::t q;
68
typedef d, p >::t> r; // *
69
 
70
typedef d, p >::t, d, p<> >::t> s;

powered by: WebSVN 2.1.0

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