-
-
Save LunaBorowska/7022640 to your computer and use it in GitHub Desktop.
Some fun with creduce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
struct A { | |
std::string text; | |
int val; | |
}; | |
struct B { | |
int val; | |
int padding[]; | |
}; | |
struct C { | |
int field2; | |
long aligner; | |
int func_param; | |
void m_fn1(B p1...) { | |
func_param && this->field2; | |
A a; | |
a.val = p1.val; | |
} | |
}; | |
int main() { | |
B b; | |
C p; | |
p.m_fn1(b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment