1 // Test for constant initialization of non-literal class (e.g. mutex)
2 // { dg-options "-save-temps" }
3 // { dg-do run { target c++11 } }
8 constexpr A(int _i): i(_i) { }
9 A(const A&); // non-trivial copy ctor makes A non-literal
12 A a(42); // constexpr constructor allows constant initialization
13 A ar[3] = { { 1 }, { 2 }, { 3 } };
14 // { dg-final { scan-assembler-not "static_initialization" } }