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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/47199
2
// { dg-options "-std=c++0x -fno-elide-constructors" }
3
 
4
template < int > struct S
5
{
6
  constexpr S (int r):rr (r)
7
  {
8
  }
9
  S (const S &) = default;
10
  static constexpr S s ()
11
  {
12
    return -1;
13
  }
14
  int rr;
15
};
16
 
17
static const int d = S < 0 >::s ().rr;

powered by: WebSVN 2.1.0

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