/* { dg-do compile { target { ! ia32 } } } */ /* { dg-options "-std=gnu++20 -O2 -march=skylake" } */ /* { dg-final { scan-assembler-not "call\[\\t \]_?memset\[\r\n\]\[^\r\n\]movq\[\\t \]%\[a-z0-9]*, %\[a-z0-9]*\[\r\n\]\[^\r\n\]vpxor\[\\t \]%xmm0, %xmm0, %xmm0\[\r\n\]\[^\r\n\]vmovdqu\[\\t \]%xmm0, 36\\(%rax\\)" } } */ /* { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } } */ #include #include #include class FastBoard { public: typedef std::pair movescore_t; typedef std::tr1::array scoredlist_t; protected: std::vector m_critical; int m_boardsize; }; class FastState { public: FastBoard board; int movenum; protected: FastBoard::scoredlist_t scoredmoves; }; class KoState : public FastState { private: std::vector ko_hash_history; std::vector hash_history; }; class GameState : public KoState { public: void foo (); private: std::vector game_history; }; void GameState::foo() { game_history.resize(movenum); }