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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [noexcept11.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++/49107
2
// { dg-options -std=c++0x }
3
 
4
template
5
_Tp declval() noexcept;
6
 
7
template()))>
8
struct trait
9
{
10
  static const bool value=true;
11
};
12
 
13
template
14
struct pair
15
{
16
  _T2 second;
17
  void swap(pair& __p)
18
    noexcept(trait<_T2>::value);
19
};
20
 
21
template < class R_ >
22
struct Main
23
{
24
  Main() {}
25
  Main(const typename R_::Sub1T& r) ;
26
  Main(const typename R_::Sub2T& l) ;
27
};
28
 
29
template < class R_ >
30
class Sub1
31
{
32
  typedef pair Rep;
33
  Rep base;
34
};
35
 
36
template < class R_ >
37
struct Sub2
38
{
39
  typedef pair Rep;
40
  Rep base;
41
};
42
 
43
struct Kernel
44
{
45
  typedef Main MainT;
46
  typedef Sub1 Sub1T;
47
  typedef Sub2 Sub2T;
48
};
49
 
50
Main f()
51
{
52
  return Main ();
53
}

powered by: WebSVN 2.1.0

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