summaryrefslogtreecommitdiffstats
path: root/Tests/FindTIFF/Test/main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/FindTIFF/Test/main.cxx')
-rw-r--r--Tests/FindTIFF/Test/main.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/FindTIFF/Test/main.cxx b/Tests/FindTIFF/Test/main.cxx
new file mode 100644
index 0000000..f80a31f
--- /dev/null
+++ b/Tests/FindTIFF/Test/main.cxx
@@ -0,0 +1,16 @@
+#include <fstream>
+
+#include <assert.h>
+#include <tiffio.hxx>
+
+int main()
+{
+ /* Without any TIFF file to open, test that the call fails as
+ expected. This tests that linking worked. */
+ TIFF* tiff = TIFFOpen("invalid.tiff", "r");
+ assert(!tiff);
+
+ std::ifstream s;
+ TIFF* tiffxx = TIFFStreamOpen("invalid.tiff", &s);
+ return 0;
+}