* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-static3.C
blob11fd3436d4a24b15ab58853ec701862b5acbb6db
1 // Test for constant initialization of class with vtable
2 // { dg-options "-save-temps" }
3 // { dg-final { scan-assembler-not "static_initialization" } }
4 // { dg-do run { target c++11 } }
6 int r = 1;
7 // implicit default constructor for A and B is constexpr
8 struct A { virtual void f() {} };
9 struct B: A { virtual void f() { r = 0; } };
11 B b;
13 int main()
15   b.f();
16   return r;