We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For code:
#include <cstdio> #include <cassert> int main(int argc, char ** argv) { puts("hello"); assert(argc>=1); puts("ciau"); return 0; }
The line after assert(argc>=1); is marked as not covered:
assert(argc>=1);
When I expanded the assert macro to look what's going on inside I got:
assert
#include <cstdio> #include <stdlib.h> #define assert(e) \ ((void) ((e) ? ((void)0) : __assert (#e, __FILE_NAME__, __LINE__))) #define __assert(e, file, line) \ ((void)printf ("%s:%d: failed assertion `%s'\n", file, line, e), abort()) int main(int argc, char ** argv) { puts("hello"); assert(argc>=1); puts("ciau"); return 0; }
The line after the assert is still not matched...
expected behaviour:
The text was updated successfully, but these errors were encountered:
tried with 14 and 15rc3
Sorry, something went wrong.
Duplicate of #59030
No branches or pull requests
For code:
The line after
assert(argc>=1);
is marked as not covered:When I expanded the
assert
macro to look what's going on inside I got:The line after the assert is still not matched...
expected behaviour:
The text was updated successfully, but these errors were encountered: