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

order of defines not respected #386

Open
firewave opened this issue Nov 22, 2024 · 1 comment
Open

order of defines not respected #386

firewave opened this issue Nov 22, 2024 · 1 comment
Assignees

Comments

@firewave
Copy link
Collaborator

void f()
{
#ifdef DEF_1
    int i;
#endif
}
$ ./simplecpp -DDEF_1 -UDEF_1 -DDEF_1 test.cpp
void f ( )
{



}
@firewave firewave self-assigned this Nov 22, 2024
@firewave
Copy link
Collaborator Author

$ gcc -DDEF_1 -UDEF_1 -DDEF_1 -save-temps input.cpp | cat a-input.ii
# 0 "input.cpp"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "input.cpp"
void f()
{

    int i;

}

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

No branches or pull requests

1 participant