// { dg-lto-do assemble } // { dg-lto-options { { -O -flto } } } template struct builtin_simd { using type [[gnu::vector_size(sizeof(scalar_t) * length)]] = scalar_t; }; struct simd_traits { using scalar_type = int; template using rebind = typename builtin_simd::type; }; template constexpr simd_t fill(typename simd_traits::scalar_type const scalar) { return simd_t{scalar}; } class Test { using score_type = typename builtin_simd::type; score_type data[1]{fill(8)}; }; struct TestFactoryBase { virtual Test *CreateTest() = 0; }; template struct TestFactoryImpl : public TestFactoryBase { Test *CreateTest() override { return new TestClass; } }; void MakeAndRegisterTestInfo(TestFactoryBase *factory); int main() { MakeAndRegisterTestInfo(new TestFactoryImpl); }