aboutsummaryrefslogtreecommitdiff
path: root/old-tests/test/generated/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-05 14:39:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-05 14:39:47 +0200
commit36ec90018e1a6337d23fc5286ed926c2134bde1f (patch)
tree40710bf9555076689d1ee7726ec3e29317dba00a /old-tests/test/generated/driver.cxx
parent3954be70024fd60c20c658f08025eff7654a8943 (diff)
Add tests for auto-generated test inputs/outputs
Diffstat (limited to 'old-tests/test/generated/driver.cxx')
-rw-r--r--old-tests/test/generated/driver.cxx26
1 files changed, 0 insertions, 26 deletions
diff --git a/old-tests/test/generated/driver.cxx b/old-tests/test/generated/driver.cxx
deleted file mode 100644
index f674141..0000000
--- a/old-tests/test/generated/driver.cxx
+++ /dev/null
@@ -1,26 +0,0 @@
-#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;
-
- cout << "output" << endl;
-
- return 0;
-}