/*************************************************************************** * * Copyright (c) 2008 Baidu.com, Inc. All Rights Reserved * $Id: gen.c,v 1.1 2008/12/30 03:39:55 yingxiang Exp $ * **************************************************************************/ /** * @file gen.cpp * @author xiaowei(com@baidu.com) * @date 2008/11/21 18:22:15 * @version $Revision: 1.1 $ * @brief * **/ #include #include #include int main() { std::cout<<"#include "<"< -1e5 )"<>2)<<1+3<<2*(1<<2)" }; std::vector vec(vecs, vecs+sizeof(vecs)/sizeof(vecs[0])); std::vector type; type.push_back("int"); type.push_back("long"); //type.push_back("char"); type.push_back("unsigned int"); type.push_back("unsigned long"); type.push_back("long long"); type.push_back("unsigned long long"); for (int tp=0; tp<(int)type.size(); ++tp) { for (int i=0; i<(int)vec.size(); ++i) { std::cout<<"\t"<<"void test" <<"_case"<