Skip to content
New issue

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

Issue handling \ in single statement blocks #3

Closed
rmbishop opened this issue Nov 20, 2023 · 1 comment
Closed

Issue handling \ in single statement blocks #3

rmbishop opened this issue Nov 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@rmbishop
Copy link
Owner

rmbishop commented Nov 20, 2023

The following valid program will be incorrectly instrumented:

int f1()
{
  int x = 0;
  if(1)
    x++;
\
}

This will become

#include <tc_inst_decl.h>
int doit()
{
  unsigned int tc_cov_offset_0, tc_temp_cond_0, tc_temp_dec_0;
  int x = 0;
  COV_STATEMENT(0);
  if(INST_SINGLE(0,1,(1)))
    {COV_STATEMENT(2);
    x++;
\}
}

Notice "\}". The \ is stray, and causes a parser error. Need to a newline before the inserted closing "}"

@rmbishop rmbishop added the bug Something isn't working label Nov 20, 2023
@rmbishop
Copy link
Owner Author

Update merged into main

rmbishop added a commit that referenced this issue Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant