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

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
template
3
struct tuple_base {
4
  static const int value = 0;
5
};
6
 
7
template<>
8
struct tuple_base
9
{
10
  static const int value = 1;
11
};
12
 
13
template
14
struct tuple_base
15
{
16
  static const int value = 2;
17
};
18
 
19
template
20
struct tuple_of_pointers : tuple_base { };
21
 
22
int a1[tuple_of_pointers::value == 1? 1 : -1];
23
int a2[tuple_of_pointers::value == 2? 1 : -1];

powered by: WebSVN 2.1.0

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