lw-build-system/scripts/build.tests.c++/template
Laurence Withers 0e9f48ff2d Big copyright update
Uses new-style copyright notices and improves consistency a bit. Removes the
old KATE_MODELINE stuff.
2010-11-25 15:32:52 +00:00

45 lines
703 B
Text

/* @P@/src/@NAME@/???.cpp
*
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
@TEST_HEADERS@
#include <iostream>
int
main(int argc, char* argv[])
{
if(argc == 2 && !strcmp(argv[1], "--print-summary")) {
std::cout << "One line summary.\n";
return 0;
}
if(argc == 1) {
// empty argument list
}
int ret = 0;
try {
// TODO
}
catch(std::exception& e) {
std::cerr << e.what() << std::endl;
ret = 1;
}
catch(...) {
std::cerr << "Unknown exception caught." << std::endl;
ret = 1;
}
return ret;
}
/* options for text editors
vim: @VIM_MODELINE@
*/