blob: f80a31f1bb59078b5f8a3a8f714103874a816beb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}
|