17 lines
341 B
C++
Raw Normal View History

2021-09-14 00:13:48 +02:00
#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;
}