summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testIOS.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/testIOS.cxx')
-rw-r--r--Source/kwsys/testIOS.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/kwsys/testIOS.cxx b/Source/kwsys/testIOS.cxx
index 5b65d20..2839109 100644
--- a/Source/kwsys/testIOS.cxx
+++ b/Source/kwsys/testIOS.cxx
@@ -1,6 +1,7 @@
#include "kwsysPrivate.h"
#include KWSYS_HEADER(stl/vector)
#include KWSYS_HEADER(ios/sstream)
+#include KWSYS_HEADER(ios/fstream)
#include KWSYS_HEADER(ios/iostream)
// Work-around CMake dependency scanning limitation. This must
@@ -9,6 +10,7 @@
# include "kwsys_stl_string.hxx.in"
# include "kwsys_stl_vector.h.in"
# include "kwsys_ios_sstream.h.in"
+# include "kwsys_ios_fstream.h.in"
# include "kwsys_ios_iostream.h.in"
#endif
@@ -142,6 +144,13 @@ int testIOS(int, char*[])
return 1;
}
+ // Just try to compile this.
+ if(x == 12345)
+ {
+ kwsys_ios::ifstream fin("/does_not_exist",
+ kwsys_ios::ios::in | kwsys_ios_binary);
+ }
+
kwsys_ios::cout << "IOS tests passed" << kwsys_ios::endl;
return 0;
}