Add missing test file
This commit is contained in:
parent
853af58124
commit
277994e27c
2 changed files with 22 additions and 0 deletions
21
tests/testdata/cpp/simple/printer.cpp
vendored
Normal file
21
tests/testdata/cpp/simple/printer.cpp
vendored
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue