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

Incorrect handing of typedefs when testing #696

Open
yav opened this issue Nov 5, 2024 · 0 comments
Open

Incorrect handing of typedefs when testing #696

yav opened this issue Nov 5, 2024 · 0 comments
Assignees

Comments

@yav
Copy link
Collaborator

yav commented Nov 5, 2024

Consider the following example, in a file called test.c:

typedef struct {                                                                 
  int x;                                                                            
} T;                                                                                
                                                                                 
void f(T *p) { p->x = 2; }       

The generated test-exec.c file contains an empty typedef declaration like this:

typedef T;

which defaults T to int and leads to great confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants