* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-defarg2.C
blob515576e1f6244c0f5258a335c60be3da4bc2971b
1 // PR c++/46368
2 // { dg-do compile { target c++11 } }
4 class A;
6 class B
8   A foo ();
9   A bar ();
12 class C
16 struct D
18   D (C);
21 struct A : D
23   A (const C & n) : D (n) {}
26 A baz (const char *, A = C ());
28 C c;
29 A a (c);
32 B::foo ()
34   try
35     {
36       baz ("foo");
37     }
38   catch (...)
39     {
40     }
42   return a;
46 B::bar ()
48   baz ("bar");
49   return a;