mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-28 01:51:02 -06:00
By using clang-format directives 'IncludeBlocks' and 'IncludeCategories' headers are regrouped by categories: 1. "cmConfigure.h" which must be first 2. header matching current implementation file 3. standard language headers 4. CMake replacement ones 5. external headers (i.e. #include directive with '<' and '>') 6. Qt headers 7. cmsys/* headers 8. cm_* headers 9. CMake headers (i.e. starting with 'cm[A-Z]') 10. all other headers Fixes: #19674
18 lines
431 B
C
18 lines
431 B
C
#include <assert.h>
|
|
// clang-format off
|
|
#include <stdio.h>
|
|
#include <jpeglib.h>
|
|
// clang-format on
|
|
|
|
int main()
|
|
{
|
|
/* 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);
|
|
}
|