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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/46368
2
// { dg-options "-std=c++0x" }
3
 
4
class A;
5
 
6
class B
7
{
8
  A foo ();
9
  A bar ();
10
};
11
 
12
class C
13
{
14
};
15
 
16
struct D
17
{
18
  D (C);
19
};
20
 
21
struct A : D
22
{
23
  A (const C & n) : D (n) {}
24
};
25
 
26
A baz (const char *, A = C ());
27
 
28
A
29
B::foo ()
30
{
31
  try
32
    {
33
      baz ("foo");
34
    }
35
  catch (...)
36
    {
37
    }
38
}
39
 
40
A
41
B::bar ()
42
{
43
  baz ("bar");
44
}

powered by: WebSVN 2.1.0

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