* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-base3.C
blobdb867d4ef43e9f8b18679585004900e393553895
1 // PR c++/46526
2 // { dg-do run { target c++11 } }
4 struct Base
6   virtual int getid () = 0;
7 };
9 struct A : public Base
11   virtual int getid () { return 1; }
14 struct B : public Base
16   virtual int getid () { throw "here"; }
19 int
20 main ()
22   A a;
23   B b;
24   Base& ar = a;
25   ar.getid ();