main.c 431 B

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