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

Subversion Repositories openrisc

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

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

powered by: WebSVN 2.1.0

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