Add missing test file

This commit is contained in:
Ben Jackson 2020-09-11 15:56:04 +01:00
commit 277994e27c
2 changed files with 22 additions and 0 deletions

21
tests/testdata/cpp/simple/printer.cpp vendored Normal file
View file

@ -0,0 +1,21 @@
#include <array>
#include <iostream>
int main( int argc, char** argv )
{
if ( ( argc - 1 ) % 2 )
{
std::cerr << "Unbalanced arguments\n";
return 1;
}
for ( int i=1; i < argc; i += 2 )
{
std::cout << argv[ i ]
<< ": "
<< argv[ i + 1 ]
<< '\n';
}
return 0;
}