CMake/Tests/RunCMake/pseudo_iwyu.c
Brad King 44de615781 cmake: Comment why we ignore the include-what-you-use return code
The include-what-you-use tool always returns non-zero to indicate that
it did not actually produce an object file as Clang would from the same
command line.  Add a comment explaining that this is why we ignore its
return code.  Also update our `pseudo_iwyu` test suite tool to always
exit with an error too.
2016-11-18 09:43:19 -05:00

9 lines
167 B
C

#include <stdio.h>
int main(void)
{
fprintf(stderr, "should add these lines:\n#include <...>\n");
/* include-what-you-use always returns failure */
return 1;
}