diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-09 15:00:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-09 15:00:16 +0200 |
commit | ab0d6919707349436edd336bbfa8f433bd6e6749 (patch) | |
tree | 864fc885d71ab8205f9c47f0c813b0a48166de33 /tests/test/simple/generated/utility.cxx | |
parent | dab05fa5ebea3aaf7107c8acf18a7f17c556a45c (diff) |
Fix broken test (and few other things)
Diffstat (limited to 'tests/test/simple/generated/utility.cxx')
-rw-r--r-- | tests/test/simple/generated/utility.cxx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/test/simple/generated/utility.cxx b/tests/test/simple/generated/utility.cxx deleted file mode 100644 index e2113bd..0000000 --- a/tests/test/simple/generated/utility.cxx +++ /dev/null @@ -1,28 +0,0 @@ -// file : tests/test/simple/generated/utility.cxx -*- C++ -*- -// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd -// license : MIT; see accompanying LICENSE file - -#include <iostream> -#include <fstream> - -using namespace std; - -int -main (int argc, char* argv[]) -{ - if (argc != 2) - { - cerr << "usage: " << argv[0] << " <file>" << endl; - return 1; - } - - ifstream ifs (argv[1], ifstream::in | ifstream::binary | ifstream::ate); - - if (!ifs.is_open ()) - cerr << "unable to open " << argv[1] << endl; - - if (ifs.tellg () == 0) - cerr << argv[1] << " is empty" << endl; - - return 0; -} |