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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic27.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
3
struct function_traits;
4
 
5
template
6
struct function_traits {
7
  typedef R result_type;
8
};
9
 
10
template
11
struct same_type {
12
  static const bool value = false;
13
};
14
 
15
template
16
struct same_type {
17
  static const bool value = true;
18
};
19
 
20
int a0[same_type::result_type, int>::value? 1 : -1];
21
int a1[same_type::result_type, int>::value? 1 : -1];
22
int a2[same_type::result_type, int>::value? 1 : -1];

powered by: WebSVN 2.1.0

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