Create weaktest.cpp