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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/48319
2
// { dg-options -std=c++0x }
3
// We were failing to recognize declval<_Args1> as dependent.
4
 
5
template Tp declval() noexcept;
6
 
7
template
8
class __is_constructible_helper
9
{
10
  typedef char __one;
11
  typedef struct { char __arr[2]; } __two;
12
 
13
  template
14
  static decltype(_Tp1(declval<_Args1>()...), __one()) __test(int);
15
 
16
  template
17
  static __two __test(...);
18
 
19
public:
20
  static const bool __value = sizeof(__test<_Tp>(0)) == 1;
21
};
22
 
23
int main() {
24
  return __is_constructible_helper::__value;
25
}

powered by: WebSVN 2.1.0

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