blob: 0116cb69073cc7f09d4c07780ef0685e0885a39f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <assert.h>
// clang-format off
#include <stdio.h>
#include <jpeglib.h>
// clang-format on
int main(void)
{
/* Without any JPEG file to open, test that the call fails as
expected. This tests that linking worked. */
struct jpeg_decompress_struct cinfo;
struct jpeg_error_mgr jerr;
cinfo.err = jpeg_std_error(&jerr);
jpeg_create_decompress(&cinfo);
return (JPEG_LIB_VERSION != CMAKE_EXPECTED_JPEG_VERSION);
}
|