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/] [variadic28.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
// { 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];
23
int a3[same_type::result_type, int>::value? 1 : -1];
24
int a4[same_type::result_type, int>::value? 1 : -1];
25
int a5[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.