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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [sfinae23.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/44969
2
// { dg-options "-std=c++0x" }
3
 
4
template
5
  class mini_is_constructible
6
  {
7
    typedef char one;
8
    typedef struct { char arr[2]; } two;
9
 
10
    template
11
      static decltype(Tp1(Args1()...), one())
12
      test(int);
13
 
14
    template
15
      static two test(...);
16
 
17
  public:
18
    static const bool value = sizeof(test(0)) == 1;
19
  };
20
 
21
class A { };
22
 
23
int Test[mini_is_constructible::value ? -1 : 1];

powered by: WebSVN 2.1.0

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